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

Any way to get/set volume for an AudioDevice? #19

Open
tfreedman opened this issue Dec 29, 2017 · 1 comment
Open

Any way to get/set volume for an AudioDevice? #19

tfreedman opened this issue Dec 29, 2017 · 1 comment

Comments

@tfreedman
Copy link

Just wondering if this is supported, because I can't find anything in the documentation.

@tfreedman tfreedman changed the title Any way to get/set audio for AudioDevice? Any way to get/set volume for an AudioDevice? Dec 29, 2017
@nagachika
Copy link
Owner

Hello @tfreedman ,
I'm sorry for the lack of documentation.
What you want to do is recording from input AudioDevice (mic) and play sound via output AudioDevice (speaker, earphone etc)?
There are some example scripts in examples sub-directory.
https://github.com/nagachika/ruby-coreaudio/blob/master/examples/record_to_wave.rb shows how to record from mic and save into WAV file.
https://github.com/nagachika/ruby-coreaudio/blob/master/examples/outloop_sine.rb and https://github.com/nagachika/ruby-coreaudio/blob/master/examples/outbuffer_sine.rb show how to play sound via output device.
I hope these samples could help.

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