• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Peak limiter on iPhone needed to mix two .wav files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Peak limiter on iPhone needed to mix two .wav files
      • From: Doug Wyatt <email@hidden>
    • Re: Peak limiter on iPhone needed to mix two .wav files
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: Re: AudioUnit 64/32 bit bridge
  • Next by Date: Re: Peak limiter on iPhone needed to mix two .wav files
  • Previous by thread: Debugging plugins running within the 32-Bit Audio Unit Bridge
  • Next by thread: Re: Peak limiter on iPhone needed to mix two .wav files
  • Index(es):
    • Date
    • Thread