Mercurial > mplayer.hg
diff Gui/mplayer/mixer.c @ 1693:d237c5d4b216
GUI version n-1
author | arpi |
---|---|
date | Sat, 25 Aug 2001 21:04:29 +0000 |
parents | |
children | a04b2f92bd14 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Gui/mplayer/mixer.c Sat Aug 25 21:04:29 2001 +0000 @@ -0,0 +1,39 @@ + +#include "play.h" + +float mixerGetVolume( void ) +{ +// --- +// --- + return mplShMem->Volume; +} + +void mixerSetVolume( float v ) +{ // 0.0 ... 100.0 +// --- +printf("%%%%%% mixerSetVolume(%5.3f) \n",v); +// --- + mplShMem->Volume=v; +} + +void mixerIncVolume( void ) +{ + mixerSetVolume( mixerGetVolume() + 1.0f ); +} + +void mixerDecVolume( void ) +{ + mixerSetVolume( mixerGetVolume() - 1.0f ); +} + +void mixerMute( void ) +{ +} + +void mixerSetBalance( float b ) +{ +// --- +// --- +printf("%%%%%% mixerSetBalance(%5.3f) \n",b); + mplShMem->Balance=b; +}