Questions tagged [opensl]

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

193 questions
1
vote
1 answer

Android NDK test app using OpenSL ES

I have developped a NDK applicaiton (which I am running from console) and running on a TI AM37x hardware using Android 4.0.3. This application is using OpenSL API's and I am trying to play the song from SDCard on the hardware. Same path is working…
0
votes
1 answer

Can not create volume interface for an Output Mix object

I am having a problem with the volume interface in OpenSL on Android. When I attempt to create an Output Mix object with the volume interface like this: const SLInterfaceID interfaceIDs[1]={SL_IID_VOLUME}; const SLboolean…
IronMensan
  • 6,761
  • 1
  • 26
  • 35
0
votes
0 answers

Why does Android OpenSL ES fail to play WAV file but reports no error either?

I am using OpenSL ES on Android NDK. I am creating an audio player, like this: SLDataLocator_URI uriLocator = {SL_DATALOCATOR_URI, (SLchar *) path}; SLDataFormat_MIME formatMIME = {SL_DATAFORMAT_MIME, NULL, SL_CONTAINERTYPE_UNSPECIFIED}; …
Simon Kissane
  • 4,373
  • 3
  • 34
  • 59
0
votes
0 answers

Alternative of OpenSLES for VNDK Android for native application

my application using OpenSLES android backend for sound output. And image compiled with BOARD_VNDK_VERSION := current Which enable VNDK support. According alternative I also can use oboe audio library output, but seems it also use libOpenSLES or…
DEgITx
  • 960
  • 1
  • 13
  • 24
0
votes
0 answers

Difference between audio frameworks on linphone audio settings

I am looking at the linphone audio settings and I see that there're two audio frameworks available, which is the difference between using AAaudio framework or OpenSL? The other item that appears in the list is Android SND and says that it is…
user3105
  • 359
  • 1
  • 2
  • 7
0
votes
0 answers

How to play sound on iOS in C++ (equivalent of OpenSL ES used in Android NDK)?

In my iOS app, I want to be able to play a stereo sin wave, in C++. The purpose of it is to be able to replicate on iOS what I did on Android using the Android NDK, where I play music using OpenSL ES. I also need to use C++, not only because all my…
matteoh
  • 2,810
  • 2
  • 29
  • 54
0
votes
2 answers

audio capturing/rendering in native code on android

I am looking into clearing up my confusion on how to capture and render audio using native code on the Android platform. What I've heard is that theres an API for audio called OpenSL. Is there any recommended guides and tutorials on how to use…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
0
votes
0 answers

OPEN SL ES Application crashing when trying to queue someone else's audio (streaming audio)

I'm trying to record audio and play it in real time using OpenSL ES, I can send the audio packet to the server, and the server is sending the packet to users correctly. However, there is a problem that I don't know why. The user who is recording can…
Mateus
  • 1
  • 2
0
votes
0 answers

OpenSLES: SL_RESULT_CONTENT_UNSUPPORTED

I see customer devices on Google Play store that have my app unable to realize the OpenSLES player object. static SLObjectItf playerObject; ... result = (*playerObject)->Realize(playerObject, SL_BOOLEAN_FALSE); gives the error…
Bram
  • 7,440
  • 3
  • 52
  • 94
0
votes
1 answer

What is the equivalent of target_link_libraries in Android.mk

I am trying to compile an android project using Android.mk and need to include the following libraries: native-audio-jni android log OpenSLES. A similar project (https://github.com/googlesamples/android-ndk/tree/master/native-audio), which includes…
0
votes
1 answer

NDK update error for opensl

I am facing some problem with compiling the code, After updating the project, now i am getting build field with error. Error:(81) Android NDK: Application targets deprecated ABI(s): armeabi mips mips64. Error:(82) Android NDK: Support for these ABIs…
Atif Mukhtiar
  • 1,186
  • 9
  • 11
0
votes
0 answers

Android - opensl es - invert sound - anti noise

I'm very new to audio processing and the opensl es system. I'm currently developing an app that generates anti noise. My idea is to invert the values in the audio buffer queue, however, all the methods I've tried are not working. I'm using opensl es…
0
votes
1 answer

Blocking within SLBufferQueueItf's callback

The OpenSL reference document does not answer whether it is possible to block within the callback specified by the call to SLBufferQueueItf::RegisterCallback(). I am thinking to do this when the player signals that it is going to starve, and the…
Alexander Solovets
  • 2,447
  • 15
  • 22
0
votes
0 answers

send audio data from OPENSL ES callback to pipedoutputstream

I am currently working with OPENSL ES on the android device. I am trying to find a method of getting a pipedinputstream created in java from java into c++ and feed it the audio data every time a callback is called. I am also looking for example code…
0
votes
1 answer

Cannot play pcm > 60kb with the AndroidSimpleBufferQueue

I've initialized an AndroidSimpleBufferQueue such as values: SLDataLocator_AndroidSimpleBufferQueue bufferLocator = { SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE, 2}; SLDataFormat_PCM pcmFormat = { SL_DATAFORMAT_PCM, 1, …
FloFu
  • 609
  • 1
  • 5
  • 21