Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set the microphone direction in Oboe similar to audioRecord.setPreferredMicrophoneDirection() #2000

Open
adaJQD opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels

Comments

@adaJQD
Copy link

adaJQD commented Apr 15, 2024

Android version(s): 12
Oboe version: 1.8.1

In my app, I use audioRecord.setPreferredMicrophoneDirection() to set which microphone to use for recording. How can I achieve this in Oboe?

@adaJQD adaJQD added the bug label Apr 15, 2024
@philburk philburk assigned philburk and flamme and unassigned philburk Apr 15, 2024
@philburk philburk added question and removed bug labels Apr 15, 2024
@flamme
Copy link
Collaborator

flamme commented Apr 24, 2024

AFAIK, there is not a setPreferredMicrophoneDirection in oboe as the API is only in JAVA but not native.

An alternative way for selecting microphone is to use setDeviceId set microphone preference for your recording. The device id can be know by calling JAVA API AudioManager.getDevices. The microphone's orientation can be know by querying MicrophoneInfo.getOrientation.

@flamme flamme assigned adaJQD and unassigned flamme Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants