audio/internal/oboe: Bug fix: Always use OpenSL

AAudio doesn't care about plugging in/out headsets. There is a
workaround [1], but this is not easy to apply. Instead, alwasy use
OpenSL.

[1] https://github.com/google/oboe/blob/master/docs/notes/disconnect.md

Closes #1634
This commit is contained in:
Hajime Hoshi 2021-05-05 18:09:41 +09:00
parent 1fecaa0a90
commit 4e0e5c6bbc

View File

@ -14,7 +14,11 @@
package oboe
// #cgo CXXFLAGS: -std=c++17
// Disable AAudio (#1634).
// AAudio doesn't care about plugging in/out of a headphone.
// See https://github.com/google/oboe/blob/master/docs/notes/disconnect.md
// #cgo CXXFLAGS: -std=c++17 -DOBOE_ENABLE_AAUDIO=0
// #cgo LDFLAGS: -llog -lOpenSLES -static-libstdc++
//
// #include "binding_android.h"