Ejemplo n.º 1
0
VOID
UpdateEQ(
    PGLOBAL_DEVICE_INFO pGDI,
    USHORT Type,
    USHORT Level
)
/*++

Routine Description

    Set the Treble and Bass levels - these are assumed to always be switched
    to the OUT_AMPLIFIER

--*/
{
    PUSHORT DestLevel;
    USHORT Current, Target;

    DestLevel = Type == _TREBLE ? &pGDI->MixerState.Treble :
                                &pGDI->MixerState.Bass;

    for (Current = *DestLevel >> 11,
         Target = Level >> 11;
         Current != Target;
         Current = Current > Target ? Current - 1 : Current + 1
         ) {

        SetEQ(pGDI,
              OUT_AMPLIFIER,
              Type,
              Current);
    }

    *DestLevel = Level;
}
Ejemplo n.º 2
0
void CMusikEQGauge::OnLeftUp( wxMouseEvent& WXUNUSED(event) )
{
	if ( m_Dragging )
	{
		SetEQ();
		ReleaseMouse();
		m_Dragging = false;
	}
}