[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] sound card rate
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] sound card rate |
Date: |
Thu, 6 Sep 2007 23:01:27 -0700 |
User-agent: |
Mutt/1.5.9i |
>
> **#################################################################################**
> PROGRAM ENDS
> **#################################################################################**
> what i had undestood is that it is because my PC's sound card
> sampling rate was 44100, and NOT 32000 as required by the program,
> I have also tried with the following modification to the
> command,but it didn't work.
> ########################################
> address@hidden:/home/sabu#
> GNUradio/gnuradio-3.0.4/gnuradio-examples/python/usrp/usrp_rx_nogui.py -f
> 101.9M -m FM -o plughw:0,0
> ########################################
> I know that it is obviously due to the fact that in the program it
> accepts only an integer value , while iam trying to enter a
> string, NOW WHAT EXACTLY I WHAT TO KNOW IS THAT HOW COULD I
> MODIFYING THE PROGRAM TO MAKE IT RUN WITHOUT ERROR ? HOW TO GET
> RID OF THE SAMPLING RATE PROBLEM I know that it is a silly
> question for all of u friends, but for me it really will be a
> worth, Please extend your helping hand...(I am in a ditch.!)
>
> SHIJESH AK
> INDIA
Whoever wrote this piece of code failed to provide the
standard -O <dev> command line option to specify the audio output
device. If it were provided, then -O plughw:0,0 would most likely
fix your problem.
parser.add_option("-O", "--audio-output", type="string", default="",
help="pcm device name. E.g., hw:0,0 or surround51 or
/dev/dsp")
...
AUDIO = audio.sink(options.output_rate, options.audio_output)
Eric