audioflinger

How the mixer thread created in Audio filnger and how the mapping is done between app and audio flinger mixer?

笑着哭i 提交于 2020-12-15 06:43:25
问题 I am trying to map this arch in the source code. As I checked in source code there are multiple threads created by audio flinger like direct output thread, mixer thread, offload thread, etc. But I am not getting where should I change in configuration to create multiple mixer thread and how to map the data between app and mixer thread as shown in the below diagram. just to mention the source of this arch is from- https://source.android.com/devices/automotive/audio 来源: https://stackoverflow.com

What does “status -12” mean in Android AudioTrack?

主宰稳场 提交于 2019-12-21 15:00:45
问题 When using Android soundpool/audioTrack, I keep getting the following error: AudioFlinger could not create track, status: -12 Error creating AudioTrack Can anyone explain what -12 is? Is it the value of some enum from the source code? I've seen other questions that deal with error -12 but nowhere conclusively do I see what that constant actually stands for. Does someone know the list of the possible statuses for AudioFlinger? I've also seen error -22 around, but I don't know what that means

SoundPool “AudioFlinger could not create track, status: -12”

半腔热情 提交于 2019-11-28 03:11:35
问题 I have an Android app with single button. When the button is clicked, the app starts playing (looping) sound loaded with SoundPool. When the button is clicked again, the sound is stopped, and then started again. But the problem is that the sound is played only every other time. Click 1st time -> sound starts to play Click 2nd time -> sound stops but doesn't start again Click 3rd time -> sound starts to play Click 4th time -> sound stops but doesn't start to play and so on... When the sound