mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
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:
parent
1fecaa0a90
commit
4e0e5c6bbc
6
audio/internal/oboe/binding_android.go
vendored
6
audio/internal/oboe/binding_android.go
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user