Volume, Balance, and Fade

The volume, balance, and fade functions control volume, balance, and fade settings.

    To modify volume 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.

    To modify bass, treble, loudness, and crossover settings

  1. To get the setting, pass AAM_FLAG_GET to the function.
  2. To change the setting, pass AAM_FLAG_SET to the function.

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)