google / google/oboe

Conflict with opensl

Open
#2,231 1 comment 0 reactions 1 assignee Assigned to @oskycar View on GitHub
bug
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.