# HG changeset patch # User pontscho # Date 1000332725 0 # Node ID 1f1e98fbf3a70f424ca47cbb1d2707227dd317d8 # Parent 986de19221c9c951875f6960d2dd10a70811a113 add new sumbols diff -r 986de19221c9 -r 1f1e98fbf3a7 Gui/mplayer/mw.h --- a/Gui/mplayer/mw.h Wed Sep 12 18:53:42 2001 +0000 +++ b/Gui/mplayer/mw.h Wed Sep 12 22:12:05 2001 +0000 @@ -73,18 +73,17 @@ case '6': t=mplShMem->LengthInSec; goto calclengthhhmmss; case '1': t=mplShMem->TimeSec; calclengthhhmmss: - s=t%60; t=( t - s ) / 60; m=t%60; h=t/60; - sprintf( tmp,"%02d:%02d:%02d",h,m,s ); strcat( trbuf,tmp ); + sprintf( tmp,"%02d:%02d:%02d",t/3600,t/60%60,t%60 ); strcat( trbuf,tmp ); break; case '7': t=mplShMem->LengthInSec; goto calclengthmmmmss; case '2': t=mplShMem->TimeSec; calclengthmmmmss: - s=t%60; m=( ( t - s ) / 60 ) % 60; - sprintf( tmp,"%04d:%02d",m,s ); strcat( trbuf,tmp ); + sprintf( tmp,"%04d:%02d",t/60,t%60 ); strcat( trbuf,tmp ); break; - case '3': sprintf( tmp,"%02d",( mplShMem->TimeSec - ( mplShMem->TimeSec % 60 ) ) / 3600 ); strcat( trbuf,tmp ); break; - case '4': sprintf( tmp,"%02d",( ( mplShMem->TimeSec - ( mplShMem->TimeSec % 60 ) ) / 60 ) % 60 ); strcat( trbuf,tmp ); break; + case '3': sprintf( tmp,"%02d",mplShMem->TimeSec / 3600 ); strcat( trbuf,tmp ); break; + case '4': sprintf( tmp,"%02d",( ( mplShMem->TimeSec / 60 ) % 60 ) ); strcat( trbuf,tmp ); break; case '5': sprintf( tmp,"%02d",mplShMem->TimeSec % 60 ); strcat( trbuf,tmp ); break; + case '8': sprintf( tmp,"%01d:%02d:%02d",mplShMem->TimeSec / 3600,( mplShMem->TimeSec / 60 ) % 60,mplShMem->TimeSec % 60 ); strcat( trbuf,tmp ); break; case 'v': sprintf( tmp,"%3.2f%%",mplShMem->Volume ); strcat( trbuf,tmp ); break; case 'V': sprintf( tmp,"%3.1f",mplShMem->Volume ); strcat( trbuf,tmp ); break; case 'b': sprintf( tmp,"%3.2f%%",mplShMem->Balance ); strcat( trbuf,tmp ); break; @@ -93,6 +92,14 @@ case 's': if ( mplShMem->Playing == 0 ) strcat( trbuf,"s" ); break; case 'l': if ( mplShMem->Playing == 1 ) strcat( trbuf,"p" ); break; case 'e': if ( mplShMem->Playing == 2 ) strcat( trbuf,"e" ); break; + case 'a': + switch ( mplShMem->AudioType ) + { + case 0: strcat( trbuf,"n" ); break; + case 1: strcat( trbuf,"m" ); break; + case 2: strcat( trbuf,"t" ); break; + } + break; case '$': strcat( trbuf,"$" ); break; default: continue; } diff -r 986de19221c9 -r 1f1e98fbf3a7 Gui/mplayer/play.c --- a/Gui/mplayer/play.c Wed Sep 12 18:53:42 2001 +0000 +++ b/Gui/mplayer/play.c Wed Sep 12 22:12:05 2001 +0000 @@ -50,6 +50,7 @@ mplShMem->Playing=0; mplShMem->TimeSec=0; mplShMem->Position=0; + mplShMem->AudioType=0; if ( !appMPlayer.subWindow.isFullScreen ) { wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); diff -r 986de19221c9 -r 1f1e98fbf3a7 mplayer.c --- a/mplayer.c Wed Sep 12 18:53:42 2001 +0000 +++ b/mplayer.c Wed Sep 12 22:12:05 2001 +0000 @@ -870,6 +870,9 @@ mp_msg(MSGT_CPLAYER,MSGL_INFO,"AUDIO: srate=%d chans=%d bps=%d sfmt=0x%X ratio: %d->%d\n",sh_audio->samplerate,sh_audio->channels,sh_audio->samplesize, sh_audio->sample_format,sh_audio->i_bps,sh_audio->o_bps); } +#ifdef HAVE_NEW_GUI + if ( use_gui ) mplShMem->AudioType=sh_audio->channels; +#endif } //================== Init VIDEO (codec & libvo) ==========================