When setting up LIRC with xine I noticed that some useful keyboard
commands were not available as LIRC commands, so I added them to lirc.c.
I have added the following commands:
- for toggling audio mute
- for increasing/decreasing audio volume
- for seeking +/- 15 sec
- for making a snapshot
- for toggling the aspect ratio
I'm not much of a C coder, but since I stole the code that actually
does something from event.c I hope it should be ok.
The diff is made against the version of lirc.c from the 0.9.2
release since I couldn't get the bleeding-edge CVS version to compile.
RCS file: /cvsroot/xine/xine-ui/src/xitk/lirc.c,v
retrieving revision 1.3
diff -r1.3 lirc.c
> case lMUTE:
> panel_toggle_audio_mute(NULL, NULL, !gGui->mixer.mute);
> case lVOLup:
> case lVOLdown:
> case lSEEKfwd:
> gui_seek_relative (15);
> case lSEEKrew:
> gui_seek_relative (-15);
> case lSNAPSHOT:
> panel_snapshot(NULL, NULL);
> case lASPECT:
Get latest updates about Open Source Projects, Conferences and News.