Questions tagged [android-audio-streams]
6 questions
8
votes
2 answers
What is the differences between MODE_IN_CALL, MODE_IN_COMMUNICATION, MODE_CALL_SCREENING?
This is what the file says, but I can't fully understand.
/* modes for setMode/getMode/setRoute/getRoute */
/**
* Audio harware modes.
*/
/**
* Invalid audio mode.
*/
public static final int MODE_INVALID =…

c-an
- 3,543
- 5
- 35
- 82
5
votes
1 answer
How to read data from a stream using callback function. Oboe-Android
I'm currently working on a project where I need low-latency audio, so I decided to use Oboe (google library) to work with it.
I've read the documentation but multiple questions arise from it.
First, once I create my stream using the builder pattern,…
1
vote
1 answer
Android: detect if sound from STREAM_VOICE_CALL is playing
I'm looking for a way to check if other applications are using the STREAM_VOICE_CALL (for example during a phone call or while listening a whatsapp voice note bringing the phone to the ear) (but in general we should find a way to choose any stream…

fedcas
- 61
- 1
- 5
0
votes
0 answers
Play audio file into incoming call
I want to play an audio file into an incoming call so I'm going to change mixer_paths.xml but it's not working.
is there any way to do it?
in my hardware folder, there are folders called qcom and qcom-caf
after i'm answer call in logcat shows lots…

zpvk
- 124
- 1
- 10
0
votes
0 answers
Very long MediaExtractor delay/latency for online audio stream
I'm writing a small (personal use) app that plays an audio stream from the internet. The stream is an AAC audio stream. I can play that stream just fine on linux through mpv and it plays immediately with no perceivable latency.
On Android, I'm first…

barteks2x
- 1,275
- 12
- 24
0
votes
0 answers
How to get PCM bit depth from MediaCodec decoder output MediaFormat?
I'm decoding an online AAC stream with MediaCodec and trying to play it with AudioTrack. AudioTrack requires an AudioFormat which requires knowing the details of PCM encoding. I was able to get the audio to play correctly by configuring it as…

barteks2x
- 1,275
- 12
- 24