Questions tagged [opensl]

OpenSL ES™ is a royalty-free, cross-platform, hardware-accelerated audio API tuned for embedded systems.

193 questions
2
votes
2 answers

Native audio recording in Android using OpenSL ES

I'm trying to use OpenSL ES for Android in my project in order to provide a low-latency and I found that NDK sample NativeAudio is designed only for recording a short snapshots. Could you please advise me, where can I find a samples of how to record…
Taras
  • 2,526
  • 3
  • 33
  • 63
2
votes
1 answer

Where is the audio players buffer in opensl when streaming audio from an uri?

I'm trying to stream an audio file from an uri using opensl. I want to play it immediately, but also have access to the streamed data after the player has finished playing the file. I know the data is somewhere in memory, because i'm able to use…
iedoc
  • 2,266
  • 3
  • 30
  • 53
2
votes
1 answer

can an audio player in opensl output to two data sinks?

Is there any way for and audio player to output to two data sinks? more specifically, i'm trying to stream an mp3 from the net using an audio player with the data source set as an uri, to a buffer AND the output mix. Right now i have the audio…
iedoc
  • 2,266
  • 3
  • 30
  • 53
2
votes
0 answers

How to attach aux effects to global output mix?

How can I attach reverberation and envelopment reverberation effect to global output mix via OpenSL?
2
votes
2 answers

Play several sound effects simultaneously using OpenSL ES Android

I'm using OpenSL ES for playing music and sounds in my project. I've used native-audio sample as start and it's fine for reproduce background music and a single sound but when I try to reproduce two or more sounds at same time the sounds aren't…
gergonzalez
  • 2,488
  • 1
  • 22
  • 21
1
vote
0 answers

Recording with OpenSL ES in emulator

I am developing an app using OpenSLES for audio recording and playing. At this point, the app is similar to JNI sample native-audio app. One problem is that when program tries to record, it's getting following error in my emulator although it's fine…
Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240
1
vote
0 answers

About data size filled in the buffer

I need low-latency audio in my project, and Android 2.3 supports OpenSL ES. I have read documents and sample code and decide to use Android simple buffer queue to do the play and record. Now, I try to write a simple application to do the test.…
Bohan Lu
  • 513
  • 2
  • 6
  • 20
1
vote
0 answers

Android Oboe Library size

We are trying to integrate Oboe and the library size seems to be big.We dont need any processing like resampling ,format conversion .This we do in app and would like to know if its possible to significantly reduce library size with our only…
1
vote
0 answers

How to apply 3D audio effect on streaming audio in Android

I want to develop an application for Android that allows you to apply a 3D sound effect when playing streaming music. The effect that I would like to achieve is the possibility to change the virtual position of the speaker in a 3D space when the…
1
vote
2 answers

How to read data from multiple microphones using Android's Oboe/AAudio

I'm interesting in accessing both microphone on a phone using the Android Oboe library. Most phones have a dual-mic configuration and I'd like to read data from both at the same time. I've extended the "LiveAffect" sample from Oboe, and tried the…
Artash
  • 569
  • 6
  • 11
1
vote
2 answers

Supported OpenSL ES Features in Android

Android is supposed to support 3D audio via the OpenSL es API which is accesible via the NDK. That more or less works, I managed it to play sound via a created player and an output mix. But when I try to realise a listener with a 3D location…
Pixelfahnder
  • 32
  • 1
  • 3
1
vote
1 answer

The volume of the voice acquired from the microphone arbitrarily decreases (Android, OpenSLES)

I am developing an Android smartphone application that inputs a voice from a microphone and outputs the voice with an earphone. However, when I enter a voice in a microphone, I am bothered by the phenomenon that the volume of the voice acquired from…
DSK
  • 11
  • 2
1
vote
1 answer

How to set output audio device for Android OpenSL ES?

I make a player that should play only through headphones (wired or Bluetooth), but not through the speaker. If you turn off the headphones during playback, the player automatically pauses. When (Bluetooth) headphones are connected back and I get the…
MaxF
  • 2,123
  • 1
  • 14
  • 17
1
vote
0 answers

Audio merging using OpenSL ES Android

I am trying to record my vocals and then merge them with an audio file together using OPENSL ES Library. I found this GitHub sample called Native-Audio. It merges the two audios. But the background audio file is playing much faster than the actual…
Waheed Abbas
  • 187
  • 1
  • 4
  • 18
1
vote
1 answer

OpenSL es- Manipulating audio buffer queue

I'm very new to opensl es. I'm currently experimenting with the recording and playback features of opensl es for android. Right now I have a recording function which stores data in a buffer queue. I can then playback the buffer queue. Would anyone…