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 can I create a recorder? #83

Closed
yangwuan55 opened this issue Apr 24, 2018 · 4 comments
Closed

How can I create a recorder? #83

yangwuan55 opened this issue Apr 24, 2018 · 4 comments

Comments

@yangwuan55
Copy link

yangwuan55 commented Apr 24, 2018

How can I create a recorder use oboe?
Can I create both a player and recorder work together?

@dturner
Copy link
Collaborator

dturner commented Apr 24, 2018

We don't currently have a synchronous input and output code sample but it's planned. There is one for AAudio which just needs porting to Oboe - the APIs are very similar. https://github.com/googlesamples/android-audio-high-performance/tree/master/aaudio/echo

@yangwuan55
Copy link
Author

Can I use do this

builder.setDirection(oboe::Direction::Output);

to create a recorder?
Can there be two oboestream at the same time?

@dturner
Copy link
Collaborator

dturner commented Apr 26, 2018

You can do this: builder.setDirection(oboe::Direction::Input) to create an input (recording) stream. Yes, you can have more than one audio stream at the same time.

@dturner dturner closed this as completed Apr 26, 2018
@yangwuan55
Copy link
Author

Thanks very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants