oboe
oboe copied to clipboard
Conflict with opensl
Android version(s): 10 Android device(s): All Oboe version: 1.9.3 App name used for testing: (Please try to reproduce the issue using the OboeTester or an Oboe sample.)
Short description (Please only report one bug per Issue. Do not combine multiple bugs.) I had an old code to use opensl recorder audio . now I switch to use oboe recorder the code . but I found that oboe can work well,but my opensl code get errors. the error is that:
result = (*opensl_engine)->GetInterface(opensl_engine, SL_IID_ENGINE, opensl_engine_interface);
failed to call GetInterface ,Got error code 2(SL_RESULT_PARAMETER_INVALID)
if I delete oboe lib in my project . opensl will worke well again.
Steps to reproduce
Expected behavior I can call oboe or opensl as I want
Actual behavior I can only use oboe now
Device
Please list which devices have this bug. If device specific, and you are on Linux or a Macintosh, connect the device and please share the result for the following script. This gets properties of the device.
for p in \
ro.product.brand ro.product.manufacturer ro.product.model \
ro.product.device ro.product.cpu.abi ro.build.description \
ro.hardware ro.hardware.chipname ro.arch "| grep aaudio";
do echo "$p = $(adb shell getprop $p)"; done
Any additional context
If applicable, please attach a few seconds of an uncompressed recording of the sound in a WAV or AIFF file.
Can you try the compile flag defined in #2112? Thanks!