mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 04:42:10 +00:00
add voluechanged
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1848 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5932d3778e
commit
faa08119a6
@ -1,8 +1,6 @@
|
||||
|
||||
// main window
|
||||
|
||||
#include "mixer.h"
|
||||
|
||||
unsigned char * mplDrawBuffer = NULL;
|
||||
int mplMainRender = 1;
|
||||
int mplMainAutoPlay = 0;
|
||||
@ -320,11 +318,10 @@ NoPause:
|
||||
case evBackward10sec: mplRelSeek( -10 ); break;
|
||||
case evSetMoviePosition: mplAbsSeek( param ); break;
|
||||
|
||||
case evIncVolume: mixerIncVolume(); break;
|
||||
case evDecVolume: mixerDecVolume(); break;
|
||||
case evSetVolume: mixerSetVolume( param ); break;
|
||||
case evSetBalance: mixerSetBalance( param ); break;
|
||||
case evMute: mixerMute(); break;
|
||||
case evMute: mplShMem->Mute=1; break;
|
||||
case evSetVolume:
|
||||
case evSetBalance: mplShMem->VolumeChanged=1; break;
|
||||
|
||||
|
||||
case evNormalSize:
|
||||
if ( mplShMem->Playing )
|
||||
@ -438,6 +435,7 @@ void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY )
|
||||
mplMainRender=1;
|
||||
SelectedButton=i;
|
||||
boxMoved=0;
|
||||
if ( ( item->msg == evSetVolume )||( item->msg == evSetBalance ) ) mplShMem->VolumeChanged=1;
|
||||
msButton=itPotmeter;
|
||||
itemtype=itPotmeter;
|
||||
}
|
||||
@ -452,6 +450,7 @@ void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY )
|
||||
mplMainRender=1;
|
||||
SelectedButton=i;
|
||||
boxMoved=0;
|
||||
if ( ( item->msg == evSetVolume )||( item->msg == evSetBalance ) ) mplShMem->VolumeChanged=1;
|
||||
msButton=itHPotmeter;
|
||||
itemtype=itHPotmeter;
|
||||
}
|
||||
|
@ -38,9 +38,13 @@ typedef struct
|
||||
mplUnknowErrorStruct error;
|
||||
|
||||
int Playing;
|
||||
float Volume;
|
||||
float Position;
|
||||
|
||||
float Volume;
|
||||
int VolumeChanged;
|
||||
float Balance;
|
||||
int Mute;
|
||||
|
||||
int Track;
|
||||
int AudioType;
|
||||
int StreamType;
|
||||
|
Loading…
Reference in New Issue
Block a user