Lines Matching refs:AudioMixer
24 #include "AudioMixer.h"
133 if ((unsigned)argc > AudioMixer::MAX_NUM_TRACKS) {
134 fprintf(stderr, "too many tracks: %d > %u", argc, AudioMixer::MAX_NUM_TRACKS);
215 AudioMixer *mixer = new AudioMixer(mixerFrameCount, outputSampleRate);
220 float f = AudioMixer::UNITY_GAIN_FLOAT / Providers.size(); // normalize volume by # tracks
232 mixer->setParameter(name, AudioMixer::TRACK, AudioMixer::MAIN_BUFFER,
236 AudioMixer::TRACK,
237 AudioMixer::MIXER_FORMAT,
241 AudioMixer::TRACK,
242 AudioMixer::FORMAT,
246 AudioMixer::TRACK,
247 AudioMixer::MIXER_CHANNEL_MASK,
251 AudioMixer::TRACK,
252 AudioMixer::CHANNEL_MASK,
256 AudioMixer::RESAMPLE,
257 AudioMixer::SAMPLE_RATE,
260 mixer->setParameter(name, AudioMixer::VOLUME, AudioMixer::VOLUME0, &f0);
261 mixer->setParameter(name, AudioMixer::VOLUME, AudioMixer::VOLUME1, &f0);
262 mixer->setParameter(name, AudioMixer::RAMP_VOLUME, AudioMixer::VOLUME0, &f);
263 mixer->setParameter(name, AudioMixer::RAMP_VOLUME, AudioMixer::VOLUME1, &f);
265 mixer->setParameter(name, AudioMixer::VOLUME, AudioMixer::VOLUME0, &f);
266 mixer->setParameter(name, AudioMixer::VOLUME, AudioMixer::VOLUME1, &f);
269 mixer->setParameter(name, AudioMixer::TRACK, AudioMixer::AUX_BUFFER,
271 mixer->setParameter(name, AudioMixer::VOLUME, AudioMixer::AUXLEVEL, &f0);
272 mixer->setParameter(name, AudioMixer::RAMP_VOLUME, AudioMixer::AUXLEVEL, &f);
281 mixer->setParameter(Names[j], AudioMixer::TRACK, AudioMixer::MAIN_BUFFER,
284 mixer->setParameter(Names[j], AudioMixer::TRACK, AudioMixer::AUX_BUFFER,