summaryrefslogtreecommitdiff
path: root/gr-audio/grc/audio_sink.block.yml
diff options
context:
space:
mode:
authorHåkon Vågsether <haakonsv@gmail.com>2017-09-24 12:16:22 +0200
committerHåkon Vågsether <haakonsv@gmail.com>2017-10-10 10:49:36 +0200
commitbaf7eaf8f29d5a490f2580917362cf5b3db47281 (patch)
tree7afab4ee2dfa6439ecf95d47aa68996020ea04c5 /gr-audio/grc/audio_sink.block.yml
parent6fa9d33246251f44a0e78682e50e9a1cb0b03171 (diff)
Added auto-generated YAML blocks
Diffstat (limited to 'gr-audio/grc/audio_sink.block.yml')
-rw-r--r--gr-audio/grc/audio_sink.block.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/gr-audio/grc/audio_sink.block.yml b/gr-audio/grc/audio_sink.block.yml
new file mode 100644
index 0000000000..05dd947f81
--- /dev/null
+++ b/gr-audio/grc/audio_sink.block.yml
@@ -0,0 +1,49 @@
+id: audio_sink
+label: Audio Sink
+category: '[Core]/Audio'
+flags: throttle
+
+parameters:
+- id: samp_rate
+ label: Sample Rate
+ dtype: int
+ default: samp_rate
+ options: ['16000', '22050', '24000', '32000', '44100', '48000']
+ option_labels: [16KHz, 22.05KHz, 24KHz, 32KHz, 44.1KHz, 48KHz]
+- id: device_name
+ label: Device Name
+ dtype: string
+ hide: ${ ('none' if device_name else 'part') }
+- id: ok_to_block
+ label: OK to Block
+ dtype: enum
+ default: 'True'
+ options: ['True', 'False']
+ option_labels: ['Yes', 'No']
+ hide: part
+- id: num_inputs
+ label: Num Inputs
+ dtype: int
+ default: '1'
+ hide: part
+
+inputs:
+- domain: stream
+ dtype: float
+ multiplicity: ${ num_inputs }
+
+asserts:
+- ${ 0 < num_inputs }
+
+templates:
+ imports: from gnuradio import audio
+ make: audio.sink(${samp_rate}, ${device_name}, ${ok_to_block})
+
+documentation: |-
+ Not all sampling rates will be supported by your hardware.
+
+ Leave the device name blank to choose deafult audio device. ALSA users with audio trouble may try setting the device name to plughw:0,0
+
+ The audio sink can have multiple inputs depending upon your hardware. For example, set the inputs to 2 for stereo audio.
+
+file_format: 1