Questions tagged [audioflinger]
36 questions
19
votes
2 answers
What is AudioFlinger and why does it fail TONE_PROP_ACK?
In my application I issue the following statement:
toneGenerator.startTone(ToneGenerator.TONE_PROP_ACK, 600);
Which works very well on a cheap LG LS670 running Android 2.3.3 but doesn't sound at all on all other phones I have, ranging from Android…

Eternal Learner
- 2,602
- 5
- 27
- 38
13
votes
2 answers
Is it possible to get access to the speaker signal on Android?
Sending audio to the speaker for playback on Android is easy, but is it possible to get a copy of the actual final digital signal? Let's say I have 2 apps running "MyApp" and "SomeOtherApp". My app sends audio to the speaker, but so does…

user1884325
- 2,530
- 1
- 30
- 49
9
votes
2 answers
SoundPool "AudioFlinger could not create track, status: -12"
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…

TuomasK
- 502
- 3
- 11
8
votes
2 answers
What does "status -12" mean in Android AudioTrack?
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…

Tim
- 35,413
- 11
- 95
- 121
6
votes
2 answers
Capturing audio data and save to raw PCM file in AudioFlinger
After some research, I find out this is possible to capture the audio data in libaudioflinger of Android.
I think the audio data is being written to HAL in here:
ssize_t framesWritten = mNormalSink->write((char *)mSinkBuffer + offset, count);
Full…

Banana droid
- 690
- 1
- 9
- 27
5
votes
0 answers
Unable to initialize AudioEffect (LoudnessEnhancer) on MediaPlayer (API 19)
I have tried using various AudioEffect classes on AudioRecord/MediaPlayer and every time i am getting the same error as soon as i call a new object of the AudioEffect class. I am getting the following error -
04-28 18:31:06.571:…

shalvi_pandita
- 143
- 1
- 9
4
votes
2 answers
Android MediaPlayer AudioStream AudioFlinger server died!, Fatal signal 11
I have two fragments (left and right) and getting in the left fragment a list of Radiostreams. By clicking on one of these streams, the right fragment should change the Name of the Stream and start playing the stream with the given uri.
2…

StackYouMore
- 41
- 1
- 1
- 2
3
votes
0 answers
Route phone audio call to a custom sound service in android?
I have implemented my custom audio interface which is derived from AudioHardwareBase, and I have initialized it in AudioFlinger constructor class. This class will stream the audio through network.
This work fine when I play sound from a file, but…

Neo
- 81
- 1
- 8
3
votes
1 answer
Implement custom Android's libaudio.so or "how does audio work on Android?"
I'm discovering Android >4.0 at the moment and have some questions I cannot figure out by myself, maybe you can help me.
I found out, that some market-apps, like "AlsaMixer" or "MixGet with ALSA", put a library called "libaudio.so" into…

Martin L.
- 3,006
- 6
- 36
- 60
3
votes
2 answers
AudioFlinger could not create track, status: -12 , when looping a sound effect with native CocosDenshion, cocos2d-x
whenever I try to loop a sound using CocosDenshion with cocos2d-x, I get the following error:
I'm using stable cocos2d-2.0-x-2.0.2, and my code is:
CocosDenshion::SimpleAudioEngine::sharedEngine()->playEffect("sound/sound_ocean_ambmusic.ogg",…

Eli Lipsitz
- 531
- 1
- 7
- 19
3
votes
0 answers
play a sound file through the audioflinger using native android code
This is exactly what I want . I want to know how to write a C code that will be able to directly access the audio-flinger in the android. ofcourse the audio-flinger would be exporting some Interface. I think there could be a libaudio.so that I ll…

sraddhaj
- 581
- 1
- 7
- 17
3
votes
0 answers
MediaPlayer server died
I'm trying to play mp4 video in loop and i have a problem with two device (on all other devices my code works fine) Motorola Defy 2.2.1 and Motorola Atrix 4G 2.3.
The problem is after one run the media got stuck and I get this error :
08-12…

Isabella
- 89
- 1
- 4
2
votes
1 answer
How to Resolve a AudioFlinger server died! Error in Android?
New to Android, this is my first app and I've been at this issue for a few days now. My app lets users play 6 background instrumentals during game play. The music is all .mp3 format and housed directly in the app in the R.raw file folder - NOTHING…

Jason W
- 77
- 8
2
votes
1 answer
AudioTrack: AudioFlinger could not create track, status: -32
I've an apps playing short sound <5 seconds but sometimes the audio is not playing(no sound), the audio file is ogg with 128kbps bitrate and 44100hz sample rate, i've try searching google about this but didn't found the solution, here's the log when…

Bagus Alam
- 21
- 1
- 5
2
votes
1 answer
Shutter noises stop
After about 10-15 photos, the shutter noise stops working and doesn't come back until you restart the app. This error is in android studio:
02-10 10:20:03.626 491-13501/? E/AudioFlinger: no more track names
available 02-10 10:20:03.626 491-13501/?…

Sunny.A
- 21
- 2