Re: AudioConverter gives non normalized samples?!
Re: AudioConverter gives non normalized samples?!
- Subject: Re: AudioConverter gives non normalized samples?!
- From: "Mike Kluev" <email@hidden>
- Date: Tue, 27 Jan 2009 20:55:34 +0300
On Tue, 27 Jan 2009 09:33:15 Jeff Moore wrote:
I would add that the main reason we use floating point samples
is precisely this situation. Generally, the only time you need to
clip your sample buffers is if you are going to convert them to
another sample format. Otherwise, just let the out-of-range
samples ride. More often than not, they come back into range
later after more processing has been applied. And even if they
don't, you still don't need to clip the samples yourself as the
driver will take care of that for you in the final mixing stage
when it is converting the floating point samples into the
hardware's native format.
Does AudioConverter correctly clips overflown samples when it
converts from floats to shorts? I do some mic recording +
postprocessing, putting the result into PCM file (samples are
shorts) and noticed that the wave form is not "nice" due to
overflow on the said out-of-bounds samples. If I manually
clip sample values to the -1 .. +1 range the wave form is ok.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden