[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Problems using wavfile_source
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Problems using wavfile_source |
Date: |
Fri, 14 Aug 2009 17:12:20 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Aug 14, 2009 at 04:10:11PM -0400, Jonathan Coveney wrote:
> I'm modifying fm_tx4 so that I can use wav files instead of dat files as a
> source, and output a file instead of sound.
>
> I'm having issues with sample rate. I've attached the code, but here is the
> modified pipeline code, which is used to create the FM modulated signal from
> the wavfile
>
> This code works if I set mult to <= 9 (meaning in fmtx = blks2.nbfm_tx
> (audio_rate, if_rate, max_dev=5e3, tau=75e-6) that the if_rate has to be an
> integer multiple of 44.1KHz less than 9*44.1KHz). This is really vexing! If
> the multiple is 10 or higher, I get the error below.
>
> I need the sample rate to be higher that way I can have lots of disparate
> signals. It's confusing because if audio_rate is 32KHz, then if_rate can be
> set arbitrarily large. I can't do that, though, because the sample rate of a
> wav file is 44.1KHz.
FWIW, I'm pretty sure a .wav file can contain samples at pretty much any sample
rate...
There's a field in the header that gives the sample rate.
Eric