diff options
author | mleech | 2006-09-23 03:54:46 +0000 |
---|---|---|
committer | mleech | 2006-09-23 03:54:46 +0000 |
commit | 04bb51ec4f1539c51c861b7fcad2ca8047a872a3 (patch) | |
tree | 1f3b987795982d22644b1c83baf2a029443fe5e3 /gr-radio-astronomy/src | |
parent | dadc2f8b0dea65176f723042b3deb26386272686 (diff) | |
download | gnuradio-04bb51ec4f1539c51c861b7fcad2ca8047a872a3.tar.gz gnuradio-04bb51ec4f1539c51c861b7fcad2ca8047a872a3.tar.bz2 gnuradio-04bb51ec4f1539c51c861b7fcad2ca8047a872a3.zip |
Added --audio_dev option.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3626 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-radio-astronomy/src')
-rwxr-xr-x | gr-radio-astronomy/src/python/usrp_psr_receiver.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gr-radio-astronomy/src/python/usrp_psr_receiver.py b/gr-radio-astronomy/src/python/usrp_psr_receiver.py index da2398c46..cd2a182d1 100755 --- a/gr-radio-astronomy/src/python/usrp_psr_receiver.py +++ b/gr-radio-astronomy/src/python/usrp_psr_receiver.py @@ -84,6 +84,7 @@ class app_flow_graph(stdgui.gui_flow_graph): parser.add_option("-O", "--doppler", type="eng_float", default=1.0, help="Doppler ratio") parser.add_option("-B", "--divbase", type="eng_float", default=20, help="Y/Div menu base") parser.add_option("-I", "--division", type="eng_float", default=100, help="Y/Div") + parser.add_option("-A", "--audio_source", default="plughw:0,0", help="Audio input device spec") (options, args) = parser.parse_args() if len(args) != 0: parser.print_help() @@ -94,6 +95,7 @@ class app_flow_graph(stdgui.gui_flow_graph): self.reflevel = options.reflevel self.divbase = options.divbase self.division = options.division + self.audiodev = options.audio_dev # Low-pass cutoff for post-detector filter # Set to 100Hz usually, since lots of pulsars fit in this @@ -340,7 +342,7 @@ class app_flow_graph(stdgui.gui_flow_graph): # # Audio sink # - self.audio = audio.sink(second_input_rate, "plughw:0,0") + self.audio = audio.sink(second_input_rate, self.audiodev) # # The three post-detector filters |