summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/softhddev.c b/softhddev.c
index 80abe9a..b1e29cf 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -989,6 +989,7 @@ static char ConfigStartX11Server; ///< flag start the x11 server
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"
" -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"
@@ -1007,10 +1008,13 @@ int ProcessArgs(int argc, char *const argv[])
// Parse arguments.
//
for (;;) {
- switch (getopt(argc, argv, "-a:d:fg:x")) {
+ switch (getopt(argc, argv, "-a:p:d:fg:x")) {
case 'a': // audio device
AudioSetDevice(optarg);
continue;
+ case 'p': // pass-through audio device
+ AudioSetDeviceAC3(optarg);
+ continue;
case 'd': // x11 display name
X11DisplayName = optarg;
continue;
@@ -1154,12 +1158,12 @@ void SoftHdDeviceExit(void)
if (MyVideoDecoder) {
CodecVideoClose(MyVideoDecoder);
- // FIXME: CodecDelVideoDecoder(MyVideoDecoder);
+ CodecVideoDelDecoder(MyVideoDecoder);
MyVideoDecoder = NULL;
}
if (MyAudioDecoder) {
CodecAudioClose(MyAudioDecoder);
- // FIXME: CodecDelAudioDecoder(MyAudioDecoder);
+ CodecAudioDelDecoder(MyAudioDecoder);
MyAudioDecoder = NULL;
}