summaryrefslogtreecommitdiff
path: root/grc/data/grc_gnuradio/blocks/gr_wavfile_sink.xml
blob: f2c8a009f3a9d293b8c4211fd50fd16836b99e26 (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
37
38
39
40
41
42
<?xml version="1.0"?>
<!--
###################################################
##Wav File Sink
###################################################
 -->
<block>
	<name>Wav File Sink</name>
	<key>gr_wavfile_sink</key>
	<import>from gnuradio import gr</import>
	<make>gr.wavfile_sink($file, $nchan, $samp_rate, $bits_per_sample)</make>
	<param>
		<name>File</name>
		<key>file</key>
		<value></value>
		<type>file_save</type>
	</param>
	<param>
		<name>N Channels</name>
		<key>nchan</key>
		<value>1</value>
		<type>int</type>
	</param>
	<param>
		<name>Sample Rate</name>
		<key>samp_rate</key>
		<value>samp_rate</value>
		<type>int</type>
	</param>
	<param>
		<name>Bits per Sample</name>
		<key>bits_per_sample</key>
		<value>8</value>
		<type>int</type>
	</param>
	<check>1 &lt;= $nchan</check>
	<sink>
		<name>in</name>
		<type>float</type>
		<nports>$nchan</nports>
	</sink>
</block>