diff options
author | Johns <johns98@gmx.net> | 2012-02-09 16:01:36 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-09 16:01:36 +0100 |
commit | 8c16466d318350b769615ee365ecc2b6a85dda5d (patch) | |
tree | 4ef965fb993d373268fdae7e4e3a4bd668ef15e8 /softhddev.c | |
parent | ced54a5cf15e49c3da6baed3ad2a0758d2897735 (diff) | |
download | vdr-plugin-softhddevice-8c16466d318350b769615ee365ecc2b6a85dda5d.tar.gz vdr-plugin-softhddevice-8c16466d318350b769615ee365ecc2b6a85dda5d.tar.bz2 |
Set mixer channel through command line option
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/softhddev.c b/softhddev.c index 77e026f..40f8125 100644 --- a/softhddev.c +++ b/softhddev.c @@ -1230,7 +1230,8 @@ void OsdDrawARGB(int x, int y, int height, int width, const uint8_t * argb) const char *CommandLineHelp(void) { return " -a device\taudio device (fe. alsa: hw:0,0 oss: /dev/dsp)\n" - " -p device\taudio device (alsa only) for pass-through (hw:0,1)\n" + " -p device\taudio device for pass-through (hw:0,1 or /dev/dsp1)\n" + " -c channel\taudio mixer channel name (fe. PCM)\n" " -d display\tdisplay of x11 server (fe. :0.0)\n" " -f\t\tstart with fullscreen window (only with window manager)\n" " -g geometry\tx11 window geometry wxh+x+y\n" @@ -1253,10 +1254,13 @@ int ProcessArgs(int argc, char *const argv[]) // Parse arguments. // for (;;) { - switch (getopt(argc, argv, "-a:d:fg:p:sw:x")) { - case 'a': // audio device + switch (getopt(argc, argv, "-a:c:d:fg:p:sw:x")) { + case 'a': // audio device for pcm AudioSetDevice(optarg); continue; + case 'c': // channel of audio mixer + AudioSetChannel(optarg); + continue; case 'p': // pass-through audio device AudioSetDeviceAC3(optarg); continue; |