jstrait / wavefile

A Ruby gem for reading and writing sound files in Wave format (*.wav)
https://wavefilegem.com
MIT License
209 stars 24 forks source link

How play buffer in real-time? #7

Closed borodadada closed 10 years ago

borodadada commented 11 years ago

How play buffer in real-time, without writing it to a file? Ruby 2.0.0 Windows 7 x64

jstrait commented 10 years ago

It's been awhile since you opened this issue, so maybe you already found a solution. The WaveFile gem doesn't allow playing back audio, it only allows writing audio data to a Wave file. To play back the wave file, use a separate media player such as Audacity or iTunes.

I haven't used it before, but PortAudio might provide a way to play back audio through Ruby. Search Google for ruby-portaudio or ffi-portaudio.