summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_wavfile_source.block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/grc/blocks_wavfile_source.block.yml')
-rw-r--r--gr-blocks/grc/blocks_wavfile_source.block.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_wavfile_source.block.yml b/gr-blocks/grc/blocks_wavfile_source.block.yml
new file mode 100644
index 0000000000..6a84ebbb83
--- /dev/null
+++ b/gr-blocks/grc/blocks_wavfile_source.block.yml
@@ -0,0 +1,32 @@
+id: blocks_wavfile_source
+label: Wav File Source
+
+parameters:
+- id: file
+ label: File
+ dtype: file_open
+- id: repeat
+ label: Repeat
+ dtype: enum
+ default: 'True'
+ options: ['True', 'False']
+ option_labels: ['Yes', 'No']
+- id: nchan
+ label: N Channels
+ dtype: int
+ default: '1'
+ hide: part
+
+outputs:
+- domain: stream
+ dtype: float
+ multiplicity: ${ nchan }
+
+asserts:
+- ${ 1 <= nchan }
+
+templates:
+ imports: from gnuradio import blocks
+ make: blocks.wavfile_source(${file}, ${repeat})
+
+file_format: 1