OpenSL ES™ is a royalty-free, cross-platform, hardware-accelerated audio API tuned for embedded systems.
Questions tagged [opensl]
193 questions
0
votes
1 answer
Android OpenSL ES - issue with .wav file sampled at 44.1Khz
I'm trying to convert some of my OpenAL code to OpenSL ES for my Android usage (Kitkat 4.4.4) on Genymotion and encountered an issue with .wav files sampled at 44.1Khz. My application is a native one (glue).
I've followed the /native-audio sample of…
user1299518
0
votes
1 answer
OpenSL channel selection
I have to play a single channel from an ogg file under Android. After a lot of searching, I think I found out a strategy.
Using OpenSL, I decode the file to PCM using something like this.
Then I should copy the selected channel from the PCM buffer…

neclepsio
- 453
- 3
- 15
0
votes
0 answers
OpenSL to read an audio file and process the buffer
I would like to read an audio file and process the buffer while it is read.
I am thinking about making an AudioPlayer (CreateAudioPlayer) with file as source and a buffer as sink. Then another AudioPlayer with a buffer as source and the outputmix as…

Cyril
- 415
- 1
- 4
- 8
0
votes
1 answer
OpenSL changing URI without re-creating SLPlayItf
I'm currently trying to change the uri of the audioplayer without destroying the realized SLPlayItf object.
I've got something like this in the code :
static SLDataSource audioSrcOne;
static SLDataLocator_URI locUriOne;
void…

emrahgunduz
- 1,404
- 1
- 13
- 26
0
votes
3 answers
Buffering URI on OpenSL, Android
I have been trying the OpenSL for a few weeks now. I'm trying to access to the buffer while playing a file on sdcard via SL_DATALOCATOR_URI as a source. I want to write a few effects of my own and need the buffer.
Currently in the code, I'm creating…

emrahgunduz
- 1,404
- 1
- 13
- 26
0
votes
1 answer
Why does openSL not report when microphone is in use??? (Android 4.4)
This is from logcat:
W/AudioPolicyManagerALSA( 169): startInput() input 152 failed: other input already started..
E/AudioRecord(10665): start() status -38
I/myAPP(10665): [myAPP] Opening the microphone went fine...
Here is an interop issue…

user1884325
- 2,530
- 1
- 30
- 49
0
votes
0 answers
Accessing & Configuring Qualcomm MSM8960 Audio Api on Android Kit Kat
I have a couple of questions regarding Qualcomm MSM 8960 on Android Kit Kat.
When I record/render audio in native code using openSL + set the mode to IN_CALL from Java the Qualcomm MSM8960 echo canceller seems to be running. But if I set the mode…

user1884325
- 2,530
- 1
- 30
- 49
0
votes
1 answer
OpenSL ES on android Playback rate
I am currently developing an app that requires the tempo of music to be slowed down, I searched online and the only real option to do this in android is OpenSL ES. I am starting with the basics so i just got an audio file playing but for some reason…

Ray
- 1,134
- 10
- 27
0
votes
2 answers
Android OpenSL example does not load libOpenSLES.so?
I succesfully built an Android NDK application that uses the OpenSL library in Android with the help of this tutorial
http://audioprograming.wordpress.com/2012/03/03/android-audio-streaming-with-opensl-es-and-the-ndk/
In opensl_io.h the following is…

JoachimR
- 5,150
- 7
- 45
- 50
0
votes
1 answer
In Android / OpenSL, can I release and enqueue individual buffers in the bufferQueue rather than clearing the whole thing?
I am working on an app in Android with purely C/C++ and the app needs to record sound continuously and process the data synchronously, so I'm wondering when I use buffer-queue in the openSL to record sound, whether I can release the ones that are…
0
votes
0 answers
Android - Analyze Incoming Call Audio in Real-Time
Is there a way I can check / analyze the incoming voice / audio of an ongoing call.
What I need is just a way to detect if someone is talking on the other end or not (1 or 0).
No complex processing required.
I'm already aware of the…

Madhur
- 2,119
- 1
- 24
- 31
0
votes
1 answer
Can OpenSL record itself?
I'd like to capture the outgoing audio from a game and record it into an audio file as it's played. Is this possible within the framework in OpenSL? Like by connecting the OutputMix to an AudioRecorder, or something?

2-complex
- 333
- 3
- 11
0
votes
1 answer
openSL ES Android: Irregular audio callback(s)
I'm using openSL ES in one of my Android apps. When the app is in the foreground the callbacks are pretty regular. The mic callback is called approximately every 10ms and so is the speaker callback. However, if I put my app in the background and…

user1884325
- 2,530
- 1
- 30
- 49
0
votes
1 answer
Forcing the initial callback to a SLAndroidSimpleBufferQueueItf
I have a bufferqueue interface (SLAndroidSimpleBufferQueueItf) for an OpenSL audio player. I register my callback with the interface. Inside my callback I am doing a conditional wait on data to be filled in a circular buffer.
My problem is I can't…

spartygw
- 3,289
- 2
- 27
- 51
0
votes
1 answer
OpenSL SL_IID_RATEPITCH and SL_IID_VOLUME for PCM Buffer Queues on Android
I have created a multichannel audio system in OpenSL ES on the Android NDK utilizing PCM buffer queues. I cannot seem to get the OS to support SL_IID_RATEPITCH and SL_IID_VOLUME despite the Android docs saying that these two interfaces are…

user1054922
- 2,101
- 2
- 23
- 37