AUDIO_OUTPUT_FLAG_FAST否认客户端 [英] AUDIO_OUTPUT_FLAG_FAST denied by client

查看:741
本文介绍了AUDIO_OUTPUT_FLAG_FAST否认客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到这个AudioTrack警告

I'm getting this AudioTrack warning

AUDIO_OUTPUT_FLAG_FAST denied by client

在我的按钮,我子类Android应用程序。我可以听到一个点击按钮,敲击所以这没什么可担心的时候?

in my Android app for a button I'm subclassing. I can hear a click when tapping on the button so is this anything to worry about?

注:我没有得到的不匹配采样率的消息在这个问题:<一href="http://stackoverflow.com/questions/24729488/audiotrack-audio-output-flag-fast-denied-by-client-due-to-mismatching-sample-ra">AudioTrack: AUDIO_OUTPUT_FLAG_FAST否认了客户由于不匹配的采样率

Note: I'm not getting the mismatching sample rate message as in this question: AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client due to mismatching sample rate

推荐答案

最有可能的踢踏声得到了一个 AUDIO_OUTPUT_FLAG_FAST 为了使用低延迟回放如果可能的话,但 AudioTrack 类考虑轨道设置为与低延迟音频输出不相容,所以标记得到除去轨道得到视为好像该标志一直没集开始。所以,我不认为这是什么好担心的。

Most likely, the tap sound got a AUDIO_OUTPUT_FLAG_FAST in order to use low-latency playback if possible, but the AudioTrack class considered the track settings to be incompatible with the low-latency audio output, so the flag got removed and the track got treated as if the flag hadn't been set to begin with. So I wouldn't consider this to be something to worry about.

至于国旗为什么得到了否定的理由;我还是会说,最可能的原因是一个采样率不匹配。已经在<一个被添加在日志中您链接到的问题出现href="https://android.googlesource.com/platform/frameworks/av/+/4361749d74113069aafb0620a1189404205c58d0%5E1..4361749d74113069aafb0620a1189404205c58d0/">this提交到AOSP。但是,如果我们看看<一href="https://www.$c$caurora.org/cgit/quic/la/platform/frameworks/av/tree/media/libmedia/AudioTrack.cpp?h=aosp-new/master#n964">the在我们看到它还是有很多高通的设备上使用了code基的主分支的AUDIO_OUTPUT_FLAG_FAST通过客户端被拒绝登录的情况下分别有一个采样率不匹配。它记录了你要看你的设备上运行的具体实现(即哪一个设备和你正在运行的Andr​​oid版本)。

As for the reason why the flag got denied; I'd still say that the most probable reason is a sample rate mismatch. The log in the question you linked to appears to have been added in this commit to the AOSP. But if we look at the master branch of the code base used on many Qualcomm-based devices we see that it still has the "AUDIO_OUTPUT_FLAG_FAST denied by client" log in the case were there was a sample rate mismatch. Which logs you get depends on the exact implemetation running on your device (i.e. which device and Android version you're running).

这篇关于AUDIO_OUTPUT_FLAG_FAST否认客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆