|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
As for when to dither: If you are recording, the driver will have received 16 or 24-bit integers and converted them to float, which is a perfectly accurate conversion for 24 bits and less. There's no need to dither when you convert back from float to int for saving in a file. On playback, the driver is ultimately going to be responsible for converting your floats to ints. I don't know if any drivers do dither at this stage of the process, that's an interesting ball of wax. If the driver doesn't dither (and I don't believe you have a way to know without asking the manufacturer), then you might consider dithering your floats based on the device's bit depth (though for 24-bit I suspect it's not worth the trouble -- or someone will correct me if I'm wrong :-).
In cases where you want dithering, yes, you could add noise to your floats.
It's conceivable that a future version of AudioConverter would implement dithering, but it would almost certainly have to be turned on explicitly by the client, both to preserve the current behavior and to allow the client to make the decision about whether to incur the extra computational overhead.
--
Doug Wyatt
Core Audio, Apple
| References: | |
| >Re: AudioConvertor does dither? (From: Ev <email@hidden>) | |
| >Re: AudioConvertor does dither? (From: Doug Wyatt <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.