summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorjinx <@>2015-02-16 10:02:27 +0100
committerJohns <johns98@gmx.net>2015-02-16 10:02:27 +0100
commit73ce4ba803d6a879e7ae0a005bd5f95952a0c8fc (patch)
tree50fc64838b481eacc4e1e01e4f831b9d0bd6d246 /softhddevice.cpp
parent1d06c5ba59ff4175b9144764f9750f9143c066fb (diff)
downloadvdr-plugin-softhddevice-73ce4ba803d6a879e7ae0a005bd5f95952a0c8fc.tar.gz
vdr-plugin-softhddevice-73ce4ba803d6a879e7ae0a005bd5f95952a0c8fc.tar.bz2
Enable toggle AC3 downmix.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index eb07e48..ba0cb2f 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -1883,6 +1883,17 @@ static void HandleHotkey(int code)
cString::sprintf(tr("audio delay changed to %d"),
ConfigVideoAudioDelay));
break;
+ case 15:
+ ConfigAudioDownmix ^= 1;
+ fprintf(stderr, "toggle downmix\n");
+ CodecSetAudioDownmix(ConfigAudioDownmix);
+ if (ConfigAudioDownmix) {
+ Skins.QueueMessage(mtInfo, tr("surround downmix enabled"));
+ } else {
+ Skins.QueueMessage(mtInfo, tr("surround downmix disabled"));
+ }
+ ResetChannelId();
+ break;
case 20: // disable full screen
VideoSetFullscreen(0);
@@ -2288,7 +2299,7 @@ int64_t cSoftHdDevice::GetSTC(void)
#if APIVERSNUM >= 20103
void cSoftHdDevice::TrickSpeed(int speed, bool forward)
{
- dsyslog("[softhddev]%s: %d $d\n", __FUNCTION__, speed, forward);
+ dsyslog("[softhddev]%s: %d %d\n", __FUNCTION__, speed, forward);
::TrickSpeed(speed);
}
@@ -3258,7 +3269,7 @@ static const char *SVDRPHelpText[] = {
" 11: enable audio pass-through\n"
" 12: toggle audio pass-through\n"
" 13: decrease audio delay by 10ms\n"
- " 14: increase audio delay by 10ms\n"
+ " 14: increase audio delay by 10ms\n" " 15: toggle ac3 mixdown\n"
" 20: disable fullscreen\n\040 21: enable fullscreen\n"
" 22: toggle fullscreen\n"
" 23: disable auto-crop\n\040 24: enable auto-crop\n"