unsupported sample rate

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
Kirk
Posts: 2
Joined: Tue Jun 25, 2013 4:13 pm
Operating System: Please select

unsupported sample rate

Post by Kirk » Tue Jun 25, 2013 4:22 pm

I am successfully opening a Windows audio device at 4K 16 bit mono format, sending the audio to another machine, opening that machine's audio device in the same format, and playing the audio back correctly. My question is, why? The lowest supported sample rate on one machine is 8K - the other machine doesn't even admit to going that low. All my attempts to analyze the resulting data seems to confirm that I am indeed at a 4K sample rate. I can't find any information about what happens when you request a sample rate that is not supported.

Can anybody tell me what's going on? Staying with the 4K sample rate will be beneficial for bandwidth reasons (the important stuff in the audio is all below 1K hz), but I can't commit to that if it's not going to be reliable across all Windows machines.

Thanks
-Kirk

kozikowski
Forum Staff
Posts: 69357
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: unsupported sample rate

Post by kozikowski » Tue Jun 25, 2013 4:32 pm

If I had to guess at it, I'd say it's because Audacity is not a scientific instrument or WAV editor. It's an audio production editor and there's very little entertaining music below 1500Hz. Every so often somebody will complain bitterly that Audacity doesn't maintain bit-accurate digital clips through the system. No, it doesn't because not doing that sounds better in a show.

Koz

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: unsupported sample rate

Post by steve » Tue Jun 25, 2013 6:54 pm

Kirk wrote:I am successfully opening a Windows audio device at 4K 16 bit mono format, sending the audio to another machine, opening that machine's audio device in the same format, and playing the audio back correctly. My question is, why? The lowest supported sample rate on one machine is 8K - the other machine doesn't even admit to going that low.
Exactly "how" it does it is platform specific, but in general terms, if Audacity requests 4000 Hz sample rate and the hardware does not support that, then Portaudio will negotiate with the sound system and the data will be converted at some point between the hardware and Audacity into the requested format, or the request for data will fail and generate an error. The library in Audacity that handles this is Portaudio. It then comes down to what that Portaudio, the computer sound system and the sound card drivers decide to do.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply