当前位置:网站首页>Audiotrack record of a problem in playing a wav file
Audiotrack record of a problem in playing a wav file
2022-06-10 05:31:00 【lucky_ tom】
Project scenario :
Project scenario : Use AudioTrack Instead of SoundPool Play wav file , See... For the reasonProblem description :
The customer has updated a wav After sound effect , I found that the sound playback speed has increased several times , There is a funny effect similar to the fast forward of entertainment programs , I don't laugh unless I can't hold back !!!.
// The system goes through Api Can you adjust the playback rate , however AudioTrack There is no interface to provide playback speed .
AudioTrack mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,
44100, AudioFormat.CHANNEL_OUT_MONO,
AudioFormat.ENCODING_PCM_16BIT,
mMinBufferSize, AudioTrack.MODE_STREAM);
Cause analysis :
Since there is a problem with the replacement audio , So I focused on analyzing the new audio file , Use GoldWave Operate a wave , Use sampling rate before discovery 44100Hz, New file use 16000Hz, The code is normal after changing the sampling rate .
Solution :
If the project is to use wav Finally, determine and unify the sampling rate in advance , Prevent unnecessary problems and extra workload .
边栏推荐
- The world's first financial chart database test benchmark project was approved, and ant group opened patent Co Construction
- AI summit ICLR 2022 | wpipe ant group large scale DNN training pipeline parallel technology
- 自定义Tooltips提示气泡Js插件
- 《模型轻量化-剪枝蒸馏量化系列》YOLOv5无损剪枝(附源码)
- Import Base64 collection and export large pictures
- 聊一聊蚂蚁AI技术里的“老实担当”
- How can nlm5 relay acquisition, acquisition and generation instrument save more power?
- [STM32] migration of guilite based on Hal Library
- AssertJ 的异常(Exception )断言
- [introduction to software engineering] summary of knowledge points | suitable for examination review | easy to pass the exam
猜你喜欢

第六章 软件测试工具(此章完结)

五项最优!蚂蚁集团通过信通院“稳保计划”最高级评测

High jump wechat JS game source code

BFS practice topic
![[STM32] Hal library -spi](/img/a0/a35f3b3959b8ce55ecc3f3ebab861a.png)
[STM32] Hal library -spi

蚂蚁集团三项技术方案入选“2021年信息技术应用创新典型解决方案”

一些漂亮的js提示框
Redis specifies the configuration file startup, database related instructions, and redis operation string and list types

【無標題】

自定義Tooltips提示氣泡Js插件
随机推荐
The world's first financial chart database test benchmark project was approved, and ant group opened patent Co Construction
Talk about the importance of technology and tasks
Flutter file operation
Jifeng lighting | the spotlight without secondary light spot is perfect. The hill is perfect
Hevc HM learning 02
Some beautiful JS prompt boxes
Interview question 05.04 Next number
npm、yarn的安装及配置
在感知情绪上,理财助理机器人“支小宝”更进一步
Interview question 05.07 Pairing exchange
How to ensure system stability and achieve emission reduction? Ant group has these key technologies
Clear table selection
[STM32] Hal library -spi
Methods of using variables in shell parameters
Personnaliser le plug - in bulles JS prompt tooltips
Bubble Sort Bubble_ sort
Win10 installation process
R language performs double sample t-test on multiple covariates based on lapply function, Welch double sample t-test analysis and double independent sample t-test on the mean of covariates correspondi
Model Lightweight - cutting distillation Series yolov5 nonestructive Cutting (attached source)
New words new words new words new words new words new words