summaryrefslogtreecommitdiff
path: root/gr-audio/examples
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2020-10-29 23:16:46 -0400
committermormj <34754695+mormj@users.noreply.github.com>2020-10-30 06:48:06 -0400
commita95cece077c4687a25f030895a151836f6d7ec29 (patch)
treefbc66e5d5981be02041907dcc4c9275414e3157a /gr-audio/examples
parent33126ae3c9c3eefd7dea6ddd8a39515858921059 (diff)
Fix examples that use wavfile_sink
The recent libsndfile transition changed the API of the wavfile_sink block, so the two examples that use it need to be updated.
Diffstat (limited to 'gr-audio/examples')
-rw-r--r--gr-audio/examples/python/dial_tone_wav.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-audio/examples/python/dial_tone_wav.py b/gr-audio/examples/python/dial_tone_wav.py
index 1a6105caa2..58bf412c21 100644
--- a/gr-audio/examples/python/dial_tone_wav.py
+++ b/gr-audio/examples/python/dial_tone_wav.py
@@ -42,7 +42,8 @@ class my_top_block(gr.top_block):
src1 = analog.sig_source_f(sample_rate, analog.GR_SIN_WAVE, 440, ampl)
head0 = blocks.head(gr.sizeof_float, int(args.samples))
head1 = blocks.head(gr.sizeof_float, int(args.samples))
- dst = blocks.wavfile_sink(args.file_name[0], 2, int(args.sample_rate), 16)
+ dst = blocks.wavfile_sink(args.file_name[0], 2, int(args.sample_rate),
+ blocks.FORMAT_WAV, blocks.FORMAT_PCM_16)
self.connect(src0, head0, (dst, 0))
self.connect(src1, head1, (dst, 1))