diff options
Diffstat (limited to 'gr-blocks/grc/blocks_wavfile_sink.block.yml')
-rw-r--r-- | gr-blocks/grc/blocks_wavfile_sink.block.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_wavfile_sink.block.yml b/gr-blocks/grc/blocks_wavfile_sink.block.yml new file mode 100644 index 0000000000..6bce90d0ec --- /dev/null +++ b/gr-blocks/grc/blocks_wavfile_sink.block.yml @@ -0,0 +1,36 @@ +id: blocks_wavfile_sink +label: Wav File Sink + +parameters: +- id: file + label: File + dtype: file_save +- id: nchan + label: N Channels + dtype: int + default: '1' + hide: part +- id: samp_rate + label: Sample Rate + dtype: int + default: samp_rate +- id: bits_per_sample + label: Bits per Sample + dtype: int + default: '8' + +inputs: +- domain: stream + dtype: float + multiplicity: ${ nchan } + +asserts: +- ${ 1 <= nchan } + +templates: + imports: from gnuradio import blocks + make: blocks.wavfile_sink(${file}, ${nchan}, ${samp_rate}, ${bits_per_sample}) + callbacks: + - open(${file}) + +file_format: 1 |