AudioTrack:AUDIO_OUTPUT_FLAG_FAST由客户拒绝由于不匹配的采样率 [英] AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client due to mismatching sample rate
问题描述
是否有人知道如何解决这个警告信息?
10月7日至14日:38:55.411 V /跟踪器,audiotest(22426):录制主题::的run():开始录制audioRecord。
10月7日至14日:45:51.490W / AudioTrack(607):由于不匹配的采样率(44100 VS 48000)AUDIO_OUTPUT_FLAG_FAST由客户拒绝
块引用>当我测试的是Android 4.4的音频延迟,我面对一个突然耽误我看到这个警告信息后增加。但我并不在测试过程中改变采样率和初始设置是在48kHz的。录音后入门7分钟本警告信息出现。
您可以根据需要在设备上测试这个项目。该项目是在GitHub上:
<一个href=\"https://github.com/garyyu/OpenSL-ES-Android-DelayTest\">https://github.com/garyyu/OpenSL-ES-Android-DelayTest
块引用>解决方案尝试
改变采样速率
框架/基/结果
框架/ AV /结果
硬件/ libhardware
块引用>位置。
默认采样率是44100尝试设置你想要的采样率(音频文件都有)。它会工作。
欢呼声。
Does anybody know how to fix this warning message?
07-14 10:38:55.411 V/tracker-audiotest(22426): Recording Thread::run(): start audioRecord recording. 07-14 10:45:51.490 "W/AudioTrack( 607): AUDIO_OUTPUT_FLAG_FAST denied by client due to mismatching sample rate (44100 vs 48000)"
When I test the audio latency on Android 4.4, I face a suddenly delay increasing after I saw this warning message. But I don't change the sample rate during the test and the initial setting is in 48kHz. This warning message happen after 7 minutes recording started.
You can test this project on your device if needed. The project is in GitHub:
解决方案Try changing the sample rate at
frameworks/base/
frameworks/av/
hardware/libhardwarelocations.
default sample rate is 44100 try setting the sample rate you want (your audio files have). it will work.
cheers.
这篇关于AudioTrack:AUDIO_OUTPUT_FLAG_FAST由客户拒绝由于不匹配的采样率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!