我正在使用OpenSL ES开发适用于Android的应用,并且它的效果非常好,除了'在三星设备上,音频卡顿和停顿相当多。我注意到以下消息一遍又一遍地出现在LogCat中(同样,仅在三星设备上)。请注意,我不是自己启动/停止流或更改输入或输出。只需将音频数据流式传输到一个输出数据流。
这可能来自哪些想法?
08-25 15:08:22.868: V/AudioPolicyManagerBase(151): stopOutput() output 2, stream 3, session 214
08-25 15:08:22.868: V/AudioPolicyManagerBase(151): changeRefCount() stream 3, count 0
08-25 15:08:22.868: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.878: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.888: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.888: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.888: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.888: V/AudioPolicyManagerBase(151): getNewDevice() selected device 0
08-25 15:08:22.898: V/AudioPolicyManagerBase(151): setOutputDevice() output 2 device 0000 force 0 delayMs 192
08-25 15:08:22.898: V/AudioPolicyManagerBase(151): setOutputDevice() prevDevice 0002
08-25 15:08:22.898: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.898: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.898: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.898: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.898: V/AudioPolicyManagerBase(151): setOutputDevice() setting same device 0000 or null device for output 2
08-25 15:08:22.898: V/AudioPolicyManagerBase(151): checkOutputForStrategy(0002,0002,3)
08-25 15:08:22.898: V/AudioPolicyManagerBase(151): getOutputsForDevice device 0002 -> 0002
08-25 15:08:22.898: V/AudioPolicyManagerBase(151): getOutputsForDevice device 0002 -> 0002
08-25 15:08:22.918: V/AudioPolicyManagerBase(151): startOutput() output 2, stream 3, session 214
08-25 15:08:22.918: V/AudioPolicyManagerBase(151): changeRefCount() stream 3, count 1
08-25 15:08:22.918: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.918: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.918: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.928: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.928: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.928: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.928: W/AudioPolicyManagerBase(151): stream type [13], return media strategy
08-25 15:08:22.928: W/AudioPolicyManagerBase(151): stream type [14], return media strategy
08-25 15:08:22.928: V/AudioPolicyManagerBase(151): getNewDevice() selected device 2
08-25 15:08:22.928: V/AudioPolicyManagerBase(151): setOutputDevice() output 2 device 0002 force 0 delayMs 0
08-25 15:08:22.928: V/AudioPolicyManagerBase(151): setOutputDevice() prevDevice 0002
08-25 15:08:22.938: V/AudioPolicyManagerBase(151): setOutputDevice() setting same device 0002 or null device for output 2
08-25 15:08:22.938: V/AudioPolicyManagerBase(151): checkOutputForStrategy(0002,0002,3)
08-25 15:08:22.938: V/AudioPolicyManagerBase(151): getOutputsForDevice device 0002 -> 0002
08-25 15:08:22.938: V/AudioPolicyManagerBase(151): getOutputsForDevice device 0002 -> 0002