Mercurial > mplayer.hg
changeset 1886:a4e2aa412c75
*** empty log message ***
author | pontscho |
---|---|
date | Wed, 12 Sep 2001 16:05:29 +0000 |
parents | b55335dc4df8 |
children | 986de19221c9 |
files | Gui/mplayer/mixer.c Gui/mplayer/mixer.h |
diffstat | 2 files changed, 0 insertions(+), 61 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/mixer.c Wed Sep 12 15:47:18 2001 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ - -#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; -}
--- a/Gui/mplayer/mixer.h Wed Sep 12 15:47:18 2001 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ - -#ifndef _MIXER_H -#define _MIXER_H - -extern float mixerGetVolume( void ); -extern void mixerSetVolume( float v ); -extern void mixerIncVolume( void ); -extern void mixerDecVolume( void ); -extern void mixerMute( void ); -extern void mixerSetBalance( float b ); -extern float mixerGetBalance( void ); - -#endif