Peak limiter on iPhone needed to mix two .wav files
Peak limiter on iPhone needed to mix two .wav files
- Subject: Peak limiter on iPhone needed to mix two .wav files
- From: Mo DeJong <email@hidden>
- Date: Thu, 21 Jan 2010 11:30:55 -0800
Hello all
I am looking for a way to mix two .wav files on the iPhone and then
play the result using an AVAudioPlayer or with CoreAudio at the C
level. I have code that reads .wav files, mixes the PCM data, and then
plays the result on the iPhone. But I am having a problem with
clipping when the two audio files both contain a loud sound, when
these sounds overlap then the sum of the two PCM values will exceed
the 16 bit sample value rage and the audio will clip.
I am wondering if there is some kind of peak limiter available on the
iPhone? I read that on MacOSX there is a peak limiter AU plugin, is
there anything like it available on the iPhone, and if so how would
one use it with a audio mixing application? If not, could anyone
suggest an alternative that I might explore?
Another question along the same lines is, what happens on the iPhone
if two AVAudioPlayer objects are playing sounds that would clip if
they were summed together. Does CoreAudio check for that and limit the
result of the combined sounds somehow? Same question for an audio
graph where two nodes are producing sound that is sent to a mixer
unit.
thanks much
Mo DeJong
_______________________________________________
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