Skip to content

Commit

Permalink
Fix throttle with wavfile
Browse files Browse the repository at this point in the history
The throttle mode was not working correctly when using --wavfile
to get the sample rate from the WAV/OGG/etc. file, because the
value of the sample rate was taken directly from the command line
options.

See #424

(cherry picked from commit e8bcd1b)
  • Loading branch information
daniestevez committed Dec 1, 2022
1 parent ae2dbe4 commit 4b29b6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/gr_satellites
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ class gr_satellites_top_block(gr.top_block):
if self.options.throttle:
size = (gr.sizeof_gr_complex
if self.options.iq else gr.sizeof_float)
self.throttle = blocks.throttle(size,
self.options.samp_rate, True)
self.throttle = blocks.throttle(size, samp_rate, True)
self.connect(self.input,
self.throttle, self.gain, self.flowgraph)
else:
Expand Down

0 comments on commit 4b29b6a

Please sign in to comment.