#625536 raw import with >100kHz sample rate ignores given rate

Package:
audacity
Source:
audacity
Description:
fast, cross-platform audio editor
Submitter:
Jamie Heilman
Date:
2025-07-31 18:05:02 UTC
Severity:
normal
Tags:
#625536#5
Date:
2011-05-04 08:36:32 UTC
From:
To:
For some weird reason importing raw audio with a sampling rate of
192kHz results in track having a rate of 100kHz instead.  Seems to be
true of all rates > 100kHz in general.  The rate can be updated after
the import, and playback and editing still work fine, seems to only
be a flaw in the import process itself.  I've only tested 32bit LE
data.

#625536#10
Date:
2011-05-07 21:30:57 UTC
From:
To:
This is upstream bug #192, where it was reported against v1.3.12, but
the issue appears to have existed since at least 2003.

#625536#17
Date:
2011-06-03 03:38:40 UTC
From:
To:
tags 625536 + patch
thanks

Here's a patch to remove the sample rate limit on imported raw, and
add 192k and 384k to the list of standard sample rates (as 192k is now
pretty common even in on-board consumer gear, and 384k isn't even all
that rare).  I've run with this patch for a while, I haven't
experienced any adverse side effects.  Seeing as the upstream bug is a
lowly P4, I don't hold out much hope for an official fix anytime soon,
and in the interim, having to retype my sample rate 3 times for every
raw import is just needless pain.  Also note the upstream mention of
the spectrogram limit seems to overlook that the 100kHz limit there
isn't a reference to the sampling rate (atleast, not directly, its
related to the sampling rate divided by two I suppose) but rather the
highest frequency visually displayable.  Limitations imposed there are
arguably less of a big deal given the app's intended use with audio.

#625536#24
Date:
2012-03-31 23:23:41 UTC
From:
To:
tags 625536 - patch
thanks

Hi Jamie,

the upstream developers rejected your patch as stated in [1]. Your patch
doesn't apply any more in Audacity 2.0.0. Can you address upstream's
comments and supply an updated patch?

[1] http://bugzilla.audacityteam.org/show_bug.cgi?id=192