# WAV file sources and sinks

**URL:** <https://www.ruby-forum.com/t/wav-file-sources-and-sinks/129460>\
**Category:** GNU Radio\
**Created:** [February 18, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/wav-file-sources-and-sinks/129460 "2008-02-18T20:56:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jconley](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/90ced4/32.png) [@jconley](https://www.ruby-forum.com/u/jconley)\
**Post date:** [February 18, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/wav-file-sources-and-sinks/129460/1 "2008-02-18T20:56:48Z")

</div>

Martin B. has contributed two new blocks which have been merged  
into the trunk:

gr.wavfile\_source()  
gr.wavfile\_sink()

These blocks function similarly to gr.file\_source and gr.file\_sink,  
but operate on the Microsoft WAVE file format for sound files.  
Supported are 8 or 16 bit, stereo or mono, PCM sample formats, with  
data scaled to the [-1.0, 1.0] floating point format commonly used for  
transporting audio data in GNU Radio.

[http://gnuradio.org/trac/browser/gnuradio/trunk/gnuradio-core/src/lib/io/gr\_wavfile\_source.h](http://gnuradio.org/trac/browser/gnuradio/trunk/gnuradio-core/src/lib/io/gr_wavfile_source.h)  
[http://gnuradio.org/trac/browser/gnuradio/trunk/gnuradio-core/src/lib/io/gr\_wavfile\_sink.h](http://gnuradio.org/trac/browser/gnuradio/trunk/gnuradio-core/src/lib/io/gr_wavfile_sink.h)

–  
Johnathan C.  
Corgan Enterprises LLC  
[http://corganenterprises.com/](http://corganenterprises.com/)
