8 #include "cAudioDefines.h" 10 #if CAUDIO_EFX_ENABLED == 1 15 struct sEAXReverbParameters
19 float diffusion = 1.0f,
23 float decayTime = 1.49f,
24 float decayHFRatio = 0.83f,
25 float decayLFRatio = 1.0f,
26 float reflectionsGain = 0.05f,
27 float reflectionsDelay = 0.007f,
28 cVector3 reflectionsPan = cVector3(0.0f, 0.0f, 0.0f),
29 float lateReverbGain = 1.26f,
30 float lateReverbDelay = 0.011f,
31 cVector3 lateReverbPan = cVector3(0.0f, 0.0f, 0.0f),
32 float echoTime = 0.25f,
33 float echoDepth = 0.0f,
34 float modulationTime = 0.25f,
35 float modulationDepth = 0.0f,
36 float airAbsorptionGainHF = 0.994f,
37 float hFReference = 5000.0f,
38 float lFReference = 250.0f,
39 float roomRolloffFactor = 0.0f,
40 bool decayHFLimit =
true) :
41 Density(density), Diffusion(diffusion), Gain(gain), GainHF(gainHF), GainLF(gainLF),
42 DecayTime(decayTime), DecayHFRatio(decayHFRatio), DecayLFRatio(decayLFRatio),
43 ReflectionsGain(reflectionsGain), ReflectionsDelay(reflectionsDelay),
44 ReflectionsPan(reflectionsPan), LateReverbGain(lateReverbGain),
45 LateReverbDelay(lateReverbDelay), LateReverbPan(lateReverbPan),
46 EchoTime(echoTime), EchoDepth(echoDepth),ModulationTime(modulationTime),
47 ModulationDepth(modulationDepth), AirAbsorptionGainHF(airAbsorptionGainHF),
48 HFReference(hFReference), LFReference(lFReference),
49 RoomRolloffFactor(roomRolloffFactor), DecayHFLimit(decayHFLimit) { }
118 float ReflectionsGain;
125 float ReflectionsDelay;
140 cVector3 ReflectionsPan;
147 float LateReverbGain;
153 float LateReverbDelay;
159 cVector3 LateReverbPan;
184 float ModulationTime;
190 float ModulationDepth;
200 float AirAbsorptionGainHF;
230 float RoomRolloffFactor;
243 struct sReverbParameters
246 float density = 1.0f,
247 float diffusion = 1.0f,
249 float gainHF = 0.89f,
250 float decayTime = 1.49f,
251 float decayHFRatio = 0.83f,
252 float reflectionsGain = 0.05f,
253 float reflectionsDelay = 0.007f,
254 float lateReverbGain = 1.26f,
255 float lateReverbDelay = 0.011f,
256 float airAbsorptionGainHF = 0.994f,
257 float roomRolloffFactor = 0.0f,
258 bool decayHFLimit =
true) :
259 Density(density), Diffusion(diffusion), Gain(gain), GainHF(gainHF),
260 DecayTime(decayTime), DecayHFRatio(decayHFRatio),
261 ReflectionsGain(reflectionsGain), ReflectionsDelay(reflectionsDelay),
262 LateReverbGain(lateReverbGain), LateReverbDelay(lateReverbDelay),
263 AirAbsorptionGainHF(airAbsorptionGainHF), RoomRolloffFactor(roomRolloffFactor),
264 DecayHFLimit(decayHFLimit) { }
315 float ReflectionsGain;
322 float ReflectionsDelay;
329 float LateReverbGain;
335 float LateReverbDelay;
345 float AirAbsorptionGainHF;
361 float RoomRolloffFactor;
374 struct sChorusParameters
383 ChorusWaveform waveform = ECW_TRIANGLE,
387 float feedback = 0.25f,
388 float delay = 0.016f) :
389 Waveform(waveform), Phase(phase), Rate(rate), Depth(depth), Feedback(feedback),
393 ChorusWaveform Waveform;
425 struct sDistortionParameters
427 sDistortionParameters(
430 float lowpassCutoff = 8000.0f,
431 float eqCenter = 3600.0f,
432 float eqBandwidth = 3600.0f) :
433 Edge(edge), Gain(gain), LowpassCutoff(lowpassCutoff), EqCenter(eqCenter),
434 EqBandwidth(eqBandwidth) { }
458 struct sEchoParameters
462 float lRDelay = 0.1f,
463 float damping = 0.5f,
464 float feedback = 0.5f,
465 float spread = -1.0f) :
466 Delay(delay), LRDelay(lRDelay), Damping(damping), Feedback(feedback),
497 struct sFlangerParameters
506 FlangerWaveform waveform = EFW_TRIANGLE,
510 float feedback = -0.5f,
511 float delay = 0.002f) :
512 Waveform(waveform), Phase(phase), Rate(rate), Depth(depth), Feedback(feedback),
516 FlangerWaveform Waveform;
543 struct sFrequencyShiftParameters
552 sFrequencyShiftParameters(
553 float frequency = 0.0f,
554 ShiftDirection left = ESD_DOWN,
555 ShiftDirection right = ESD_DOWN) :
556 Frequency(frequency), Left(left), Right(right) { }
571 ShiftDirection Right;
575 struct sVocalMorpherParameters
619 sVocalMorpherParameters(
620 MorpherPhoneme phonemeA = EMP_A,
621 MorpherPhoneme phonemeB = EMP_ER,
622 int phonemeACoarseTune = 0,
623 int phonemeBCoarseTune = 0,
624 MorpherWaveform waveform = EMW_SINUSOID,
625 float rate = 1.41f) :
626 PhonemeA(phonemeA), PhonemeB(phonemeB), PhonemeACoarseTune(phonemeACoarseTune),
627 PhonemeBCoarseTune(phonemeBCoarseTune), Waveform(waveform), Rate(rate) { }
632 MorpherPhoneme PhonemeA;
637 MorpherPhoneme PhonemeB;
641 int PhonemeACoarseTune;
645 int PhonemeBCoarseTune;
648 MorpherWaveform Waveform;
656 struct sPitchShifterParameters
658 sPitchShifterParameters(
661 CoarseTune(coarseTune), FineTune(fineTune) { }
677 struct sRingModulatorParameters
679 enum ModulatorWaveform
686 sRingModulatorParameters(
687 float frequency = 440.0f,
688 float highPassCutoff = 800.0f,
689 ModulatorWaveform waveform = EMW_SINUSOID) :
690 Frequency(frequency), HighPassCutoff(highPassCutoff), Waveform(waveform) { }
704 float HighPassCutoff;
709 ModulatorWaveform Waveform;
713 struct sAutowahParameters
716 float attackTime = 0.06f,
717 float releaseTime = 0.06f,
718 float resonance = 1000.0f,
719 float peakGain = 11.22f) :
720 AttackTime(attackTime), ReleaseTime(releaseTime), Resonance(resonance),
721 PeakGain(peakGain) { }
744 struct sCompressorParameters
746 sCompressorParameters(
747 bool active =
true) :
755 struct sEqualizerParameters
757 sEqualizerParameters(
758 float lowGain = 1.0f,
759 float lowCutoff = 200.0f,
760 float mid1Gain = 1.0f,
761 float mid1Center = 500.0f,
762 float mid1Width = 1.0f,
763 float mid2Gain = 1.0f,
764 float mid2Center = 3000.0f,
765 float mid2Width = 1.0f,
766 float highGain = 1.0f,
767 float highCutoff = 6000.0f) :
768 LowGain(lowGain), LowCutoff(lowCutoff), Mid1Gain(mid1Gain),
769 Mid1Center(mid1Center), Mid1Width(mid1Width), Mid2Gain(mid2Gain),
770 Mid2Center(mid2Center), Mid2Width(mid2Width), HighGain(highGain),
771 HighCutoff(highCutoff) { }
Main namespace for the entire cAudio library.