The volume, balance, and fade functions control volume, balance, and fade settings.
The following code example shows how to modify volume settings.
Long lVol = 8;
AAM_VolumeControl(AAM_FLAG_MASTER
| AAM_FLAG_SET, &lVol)
AAM_VolumeControl(AAM_FLAG_CENTER
| AAM_FLAG_SET, &lVol)
AAM_VolumeControl(AAM_FLAG_WOOFER
| AAM_FLAG_SET, &lVol)
Note Volume is measured in levels of attenuation, so a volume of 0 is the loudest value.
The following code example shows how to change bass, treble, loudness, and crossover settings.
AAM_EQPreset(AAM_FLAG_BASS |
AAM_FLAG_SET, &lBass)
AAM_EQPreset(AAM_FLAG_TREBLE |
AAM_FLAG_SET, &lTreble)
AAM_EQPreset(AAM_FLAG_LOUDNESS |
AAM_FLAG_SET, (long *)&bLoudness)
AAM_FilterControl(AAM_FLAG_CROSSOVER_HPF |
AAM_FLAG_SET, &dwEnable, &dwCrossoverFreq)