From: David Rivenburg <driven@onr.com>
To: "J. Lance Cotton" <joe@lightningflash.net>, linux-hams@vger.kernel.org
Subject: Re: Soundmodem and sampling rate: force a rate?
Date: Wed, 26 Oct 2005 00:46:48 -0500 [thread overview]
Message-ID: <435F1848.9060201@onr.com> (raw)
In-Reply-To: <435E3FAC.2080501@lightningflash.net>
J. Lance Cotton wrote:
> I am trying to get soundmodem (usermode) working with a Soundblaster
> Live card on SuSE 9.3 and the commercial OSS driver.
>
> The problem is that apparently the SB card supports only 8k, 11.025k,
> 12k, ... sampling rates. At 1200bps AFSK, soundmodem demodulator asks
> for (or gets) 9600Hz sampling rate.
>
> Something, as far as I can tell, is opening the soundcard for recording
> at 9600Hz sample rate, but I've been told that that rate isn't supported
> by my SB Live card. I thought that in that instance, the "next closest"
> rate would be returned instead...
>
> I do not know if this is a problem with the Commercial OSS driver, the
> SB Live card, or soundmodem. I've tried editing the soundcard/audioio.c
> file to "force" other sample rates. It does open the card at the forced
> rate, but the decoding still doe not work reliably. (The problem is
> exemplified in the samples I recorded and put at
> http://www.cmsworldwide.com/Files/soundsamples/index.html )
>
> **Question: Is there any official way to have soundmodem request a
> user-custom sampling rate? Like a hidden config?
>
> Thanks. 73 KJ5O
>
I came across a similar thing. Looking at the soundmodemconfig scope
function I saw horizontal lines in the waveform - this is clearly
impossible for an AC coupled signal so I suspected that 9600 was not a
valid sample rate for my audio codec. Here is what I did to fix it:
in line 233 of soundcard/main.c change
unsigned int samplerate = 5000, mode;
to
unsigned int samplerate = 11025, mode;
then in line 710 of configapp/src/diag.c change
diagstate.samplerate = 5000;
to
diagstate.samplerate = 11025;
Even though the sample rate is set to 5000 there is a selection routine
in audioio.c that steps it up to 9600. I tried editing the valid sample
rate list there but it still used 9600.
After making the above changes I have not had any trouble at all with
soundmodem. Not that there aren't any, but I don't know of another way
to force a sample rate.
Hope this helps.
Dave
AD5OO
next prev parent reply other threads:[~2005-10-26 5:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-25 14:22 Soundmodem and sampling rate: force a rate? J. Lance Cotton
2005-10-26 5:46 ` David Rivenburg [this message]
2005-10-26 23:32 ` J. Lance Cotton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=435F1848.9060201@onr.com \
--to=driven@onr.com \
--cc=joe@lightningflash.net \
--cc=linux-hams@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.