Ejemplo n.º 1
0
    // Toggles the volum on and off for different mixer groups.
    public void ToggleVolume(GameMixerGroups group)
    {
        switch (group)
        {
        case GameMixerGroups.AudioFX:
            mixerControl[(int)GameMixerGroups.AudioFX].ToggleVolumeOnOff();
            break;

        case GameMixerGroups.MainTheme:
            mixerControl[(int)GameMixerGroups.MainTheme].ToggleVolumeOnOff();
            break;

        case GameMixerGroups.SpecialSounds:
            mixerControl[(int)GameMixerGroups.SpecialSounds].ToggleVolumeOnOff();
            break;

        case GameMixerGroups.MainLoop:
            mainLoopMusic.GetMixerControl().ToggleVolumeOnOff();
            break;
        }
    }