Audacity keeps converting my 24 bit samples to 32 bit float.

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
Madalert
Posts: 4
Joined: Wed Jul 08, 2015 9:20 pm
Operating System: Please select

Audacity keeps converting my 24 bit samples to 32 bit float.

Post by Madalert » Wed Jul 08, 2015 9:27 pm

audacity bit conversion problem.PNG
audacity bit conversion problem.PNG (199.3 KiB) Viewed 523 times
When I drag and drop (import) a sound file of 24 bit into audacity, it converts it into 32 bit even though I have it preferred to be set as 24 bit. what is happening here and what can I do to fix this problem?

DVDdoug
Forum Crew
Posts: 9416
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Audacity keeps converting my 24 bit samples to 32 bit fl

Post by DVDdoug » Thu Jul 09, 2015 12:31 am

I'm not sure where those default settings apply and where they don't...

But, there are very good reasons why audio editors generally use floating-point for internal-temporary storage.

Conversion from 24-bit integer to 32-bit floating-point (and back) is a lossless process so there's really no downside other than larger temporary files.

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

Re: Audacity keeps converting my 24 bit samples to 32 bit fl

Post by steve » Thu Jul 09, 2015 10:46 am

I think it's a bug, though fortunately a harmless one.

Audacity works internally in 32-bit float format, so generally it is better to work in 32-bit float format so as to reduce the number of format conversions.

I have logged this on the bug tracking system, but I would recommend that you change the default sample format to 32-bit float.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Audacity keeps converting my 24 bit samples to 32 bit fl

Post by Gale Andrews » Thu Jul 09, 2015 2:25 pm

DVDdoug wrote:I'm not sure where those default settings apply and where they don't...
Assuming we are talking about WAV files, this is what currently happens

Code: Select all

Quality setting    File Format       Imports as         

16                      16                   16
16                      24                   32 
16                      32                   32

24                      16                   24                   
24                      24                   32 
24                      32                   32

32                      16                   32
32                      24                   32
32                      32                   32
DVDdoug wrote:Conversion from 24-bit integer to 32-bit floating-point (and back) is a lossless process so there's really no downside other than larger temporary files.
I thought that there were some large 24-bit numbers that did not have exact 32-bit float equivalents: http://forum.audacityteam.org/viewtopic ... 47#p117447.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Audacity keeps converting my 24 bit samples to 32 bit fl

Post by steve » Thu Jul 09, 2015 3:43 pm

Gale Andrews wrote:I thought that there were some large 24-bit numbers that did not have exact 32-bit float equivalents: http://forum.audacityteam.org/viewtopic ... 47#p117447.
Strictly speaking, that is correct, but for signals below 0 dB the error is insignificant (we're talking about precision that is hundreds of times better than "CD quality" even in the worst case).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply