ruby-coreaudio icon indicating copy to clipboard operation
ruby-coreaudio copied to clipboard

Any way to get/set volume for an AudioDevice?

Open tfreedman opened this issue 8 years ago • 1 comments

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

tfreedman avatar Dec 29 '17 03:12 tfreedman

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.

nagachika avatar Jan 04 '18 06:01 nagachika