31 #import <Foundation/Foundation.h>
32 #import <AudioToolbox/AudioToolbox.h>
118 float targetBalance,
float * currentBalance, UInt32 frames);
141 void AEDSPMix(
const AudioBufferList * bufferList1,
const AudioBufferList * bufferList2,
float gain1,
float gain2,
142 BOOL monoToStereo, UInt32 frames,
const AudioBufferList * output);
154 void AEDSPMixMono(
const float * buffer1,
const float * buffer2,
float gain1,
float gain2, UInt32 frames,
float * output);
163 #define AEDSPSilence AEAudioBufferListSilence
175 static inline float AEDSPGenerateOscillator(
float rate,
float * position) {
181 if ( *position > 1.0 ) *position -= 2.0;
191 static inline double AEDSPDecibelsToRatio(
double decibels) {
192 return pow(10.0, decibels / 20.0);
201 static inline double AEDSPRatioToDecibels(
double ratio) {
202 return 20.0 * log10(ratio);