google / google/oboe

Support earpiece speaker in demos for OpenSL ES

Open
#885 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

According to
https://stackoverflow.com/questions/21576739/how-to-configure-opensl-to-work-with-ear-speaker-other-than-main-speaker-or-head
and
https://groups.google.com/forum/#!topic/android-ndk/O-hufEm20cU

Earpiece speaker can be selected by using option SL_ANDROID_STREAM_VOICE in OpenSL config.

It would be useful to somehow expose this in the audio demos (output device dropdown?) to demonstrate playback with OpenSL through that speaker.

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.