From 662419c0f86e774be1ca0c42adb7a572d68918a3 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 26 Jun 2004 13:26:11 +0000 Subject: Fix GUI compilation, patch by Reimar Döffinger and Alexander Strasser. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12692 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/interface.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Gui/interface.c') diff --git a/Gui/interface.c b/Gui/interface.c index 52c0ab3168..07363e882c 100644 --- a/Gui/interface.c +++ b/Gui/interface.c @@ -42,6 +42,8 @@ #include "../m_config.h" #include "../m_option.h" +extern mixer_t mixer; // mixer from mplayer.c + guiInterface_t guiIntfStruct; int guiWinID=-1; @@ -622,7 +624,7 @@ int guiGetEvent( int type,char * arg ) if ( audio_out ) { float l,r; - mixer_getvolume( &l,&r ); + mixer_getvolume( &mixer,&l,&r ); guiIntfStruct.Volume=(r>l?r:l); if ( r != l ) guiIntfStruct.Balance=( ( r - l ) + 100 ) * 0.5f; else guiIntfStruct.Balance=50.0f; @@ -651,7 +653,7 @@ int guiGetEvent( int type,char * arg ) if ( audio_out ) { float l,r; - mixer_getvolume( &l,&r ); + mixer_getvolume( &mixer,&l,&r ); guiIntfStruct.Volume=(r>l?r:l); if ( r != l ) guiIntfStruct.Balance=( ( r - l ) + 100 ) * 0.5f; else guiIntfStruct.Balance=50.0f; -- cgit v1.2.3