[Mplayer-dev-eng] Changes in volume OSD
Adam Purkrt
adampurkrt at yahoo.com
Sat Sep 15 23:53:53 CEST 2001
Hello,
suggest the following (patch is against 20010830):
------------
*** mplayer.c Sat Sep 15 22:19:07 2001
--- mplayer.c.orig Wed Aug 29 22:22:23 2001
***************
*** 1592,1610 ****
#endif
}
break;
! case 'm': {
! float mixer_l, mixer_r;
mixer_usemaster=!mixer_usemaster;
- mixer_getvolume( &mixer_l,&mixer_r );
- #ifdef USE_OSD
- if(osd_level){
- osd_visible=sh_video->fps; // 1 sec
- vo_osd_progbar_type=OSD_VOLUME;
- vo_osd_progbar_value=((mixer_l+mixer_r)*256.0)/200.0;
- // printf("volume: %d\n",vo_osd_progbar_value);
- }
- #endif
- }
break;
#if 0 // change to 1 for absolute seeking tests
--- 1592,1599 ----
#endif
}
break;
! case 'm':
mixer_usemaster=!mixer_usemaster;
break;
#if 0 // change to 1 for absolute seeking tests
------------
i.e. shows the volume of the "active" volume channel (master/pcm) after
"m" has been pressed.
wish: add a letter (M-master/P-pcm) to indicate the "active" channel in
the volume indicator, just after the icon of the volume (wedge); or
incorporate somehow into the icon (?)
By the way, it should be "Brightness", not "Brightnes" in libvo/sub.h,
line 53
Regards,
Adam Purkrt
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng
More information about the MPlayer-dev-eng
mailing list