1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 21:31:13 +00:00
mpv/Gui/mplayer/mixer.c
pontscho 8d3a427378 fix some bug.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1824 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-09-01 17:53:07 +00:00

49 lines
808 B
C

#include "play.h"
#include "../../mixer.h"
//extern void mixer_getvolume( float *l,float *r );
//extern void mixer_setvolume( float l,float r );
//extern void mixer_incvolume( void );
//extern void mixer_decvolume( void );
//extern float mixer_getbothvolume( void );
float mixerGetVolume( void )
{
// mplShMem->Volume=(float)mixer_getbothvolume();
return mplShMem->Volume;
}
void mixerSetVolume( float v )
{
mplShMem->Volume=v;
mixer_setvolume( v,v );
}
void mixerIncVolume( void )
{
// mixer_incvolume();
mixerGetVolume();
}
void mixerDecVolume( void )
{
// mixer_decvolume();
mixerGetVolume();
}
void mixerMute( void )
{
}
void mixerSetBalance( float b )
{
//printf("%%%%%% mixerSetBalance(%5.3f) \n",b);
mplShMem->Balance=b;
}
float mixerGetBalance( void )
{
return mplShMem->Balance;
}