Skip to content

Commit

Permalink
Added command line option for audio output device name.
Browse files Browse the repository at this point in the history
  • Loading branch information
csete committed Jan 12, 2011
1 parent aa655a8 commit 09f5093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gqrx.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ def __init__(self):
help="set RF gain in dB [default is midpoint]")
parser.add_option("-a", "--ar", type="int", default=44100,
help="set sample rate for soundcard [default=%default]")
parser.add_option("-O", "--audio-output", type="string", default="",
help="audio device name, e.g. plughw:0,0")
parser.add_option("", "--fft-size", type="int", default=2048,
help="Set FFT frame size, [default=%default]");

Expand Down Expand Up @@ -575,7 +577,7 @@ def __init__(self):

# audio gain and sink
self.audio_gain = gr.multiply_const_ff(1.0)
self.audio_sink = audio.sink(self._audio_rate, "", True)
self.audio_sink = audio.sink(self._audio_rate, options.audio_output, True)

# Audio recorder block
# Create using dummy filename then close it right away
Expand Down

0 comments on commit 09f5093

Please sign in to comment.