summaryrefslogtreecommitdiff
path: root/gr-blocks/grc/blocks_wavfile_sink.block.yml
blob: 6bce90d0ec8797033292ba6709b2edb65e937c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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