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
Does openSL ES for Jelly Bean 4.3 support audio route switching?
Is it possible to get available audio endpoints (earpiece, speakerphone, wired headset, bluetooth headset) via the openSL ES API for Android 4.3 ?
Or is all that stuff done at the Java level ?
Current situation is that I have implemented an openSL…

user1884325
- 2,530
- 1
- 30
- 49
0
votes
2 answers
openSL ES emulator for PC
I have openSL ES working for my android NDK.
Is there a way to make my openSL ES code emulated on the PC ? Can someone provide suggestions as to what will be the best alternatives if emulation is not possible.

madan kandula
- 460
- 5
- 22
0
votes
1 answer
Is it possible to decode mp3 data stored in a byte array?
Is it possible to decode mp3 data stored in a buffer?
I know I can decode to a buffer after API version 14. But I have been unable to create a SimpleBufferQueue to use as an input to the decoder.
This is the code as it is currently. I have been able…

Baggers
- 3,183
- 20
- 31
0
votes
1 answer
OpenSL multiple tracks
I've been trying to make a loop pedal for Android. I have 1 track working pretty well. I want to know what sort of resources/interfaces I need to implement multiple tracks. I'm using OpenSL ES, and I've read the specification doc.
Some thoughts so…

covercash2
- 173
- 1
- 2
- 11
0
votes
0 answers
Audio hardware latency changes when I connect headset. [Android]
Audio hardware latency (from speakers to mic) changes when I connect headset. What might be the reason of that variance? how to make the hardware latency constant regardless of whether headphones connected or not?
Any comments and answers are…

Taras
- 2,526
- 3
- 33
- 63
0
votes
1 answer
OpenSL slCreateEngine error on old Android Devices
I'm writing an Android application that uses a Buffer Queue Audio Player via OpenSL ES. My application runs just fine on recent devices but I'm having troubles with the HTC Wildfire S.
In particular, calling the slCreateEngine functions produces a…

rmigneco
- 595
- 4
- 16
0
votes
1 answer
What is the absolute fastest way to play audio in Android?
By "fastest," I mean lowest-latency.
The 2 methods of which I am aware are:
use android.media.AudioTrack
use OpenSL ES with NDK/C++
Of the two, which is faster? If there are other alternatives, please enlighten me.
Further details: Assume that…

JLindsey
- 700
- 2
- 7
- 14
0
votes
1 answer
How to get active engine object in OpenSLES
I am facing a problem in using OpenSLES on Android 2.3.
When I tried to create an engine object, I got the following error:
slcreateengine while another engine is active
I know OpenSLES for Android(2.3? because I didn't find this issue on Android…

jenny
- 93
- 1
- 6
0
votes
1 answer
Android OpenSL ES + MediaPlayer : Very inconsistent behaviour accross devices when using VOICE stream
I am trying to create a real time communication application (SIP like, Skype like, etc.) that is using Android's OpenSL ES implementation.
The thing is, I need to play some WAV audio file over the communication (I am doing this with MediaPlayer in…

Salomon BRYS
- 9,247
- 5
- 29
- 44
0
votes
1 answer
Android OpenSL ES crystal frequency
we have an app with mobile audio clients written in low-level OpenSL ES to achieve low-latency input from microphone. Than we are sending 10ms frames encapsulated in UDP datagram to server.
On server we are doing some post-processing which is…

JeanPijon
- 147
- 7
0
votes
1 answer
Accurate POSIX thread timing using NDK
I'm writing a simple NDK OpenSL ES audio app that records the users touches on a virtual piano keyboard and then plays them back forever over a set loop. After much experimenting and reading, I've settled on using a separate POSIX loop to achieve…

Michael J Petrie
- 183
- 4
- 13
0
votes
2 answers
OpenSLES with 3D audio
The OpenSLES specifications 1.0.1 demonstrates the implementation for 3D audio. My interest is in specifying locations for a 3D audio source.
I tried implementing this in android 14 but it gave "SL_RESULT_FEATURE_UNSUPPORTED" as result. As…

Arun George
- 18,352
- 4
- 28
- 28
0
votes
2 answers
Capturing SSL output using backticks Perl
I might be looking at this to simply and I am not sure what I want to do is possible but this hopefully will save a lot of time from having to read in and out to different files.
I am trying to do is use backticks to receive the output of an OpenSLL…

QuinsUK
- 361
- 2
- 5
- 14