Add switch to enable A52 DRC Support written by Sebastian Kemper ( 14 Jul 2006 ) update Joerg Bornkessel ( 19 Jul 2006 ) diff -Naur dvd.orig/i18n.c dvd/i18n.c --- dvd.orig/i18n.c 2006-07-19 14:06:36.000000000 +0200 +++ dvd/i18n.c 2006-07-19 14:24:07.630116533 +0200 @@ -392,5 +392,30 @@ "Vybraná zvuková stopa není k dispozici!", // Czech #endif }, + { + "Setup.DVD$A52 DRC", + "A52 DRC", // Deutsch + "A52 DRC", // Slovenski + "A52 DRC", // Italiano + "A52 DRC", // Nederlands + "A52 DRC", // Portugus + "A52 DRC", // Franais + "A52 DRC", // Norsk + "A52 DRC", // suomi + "A52 DRC", // Polski + "A52 DRC", // Espanol + "A52 DRC", // ÅëëçíéêÜ (Greek) + "A52 DRC", // Svenska + "A52 DRC", // Romaneste + "A52 DRC", // Magyar + "A52 DRC", // Catal + "A52 DRC", // ÀãááÚØÙ (Russian) + "A52 DRC", // Hrvatski (Croatian) + "A52 DRC", // Eesti + "A52 DRC", // Dansk +#if VDRVERSNUM >= 10342 + "A52 DRC", // Czech +#endif + }, { NULL } }; diff -Naur dvd.orig/setup-dvd.c dvd/setup-dvd.c --- dvd.orig/setup-dvd.c 2006-07-19 14:06:36.000000000 +0200 +++ dvd/setup-dvd.c 2006-07-19 14:21:03.962638032 +0200 @@ -34,7 +34,7 @@ ReadAHead = 0; Gain = 4; - AC3dynrng = 0; + AC3dynrng = 1; } bool cDVDSetup::SetupParse(const char *Name, const char *Value) @@ -48,6 +48,7 @@ else if (!strcasecmp(Name, "HideMainMenu")) HideMainMenu = atoi(Value); else if (!strcasecmp(Name, "ReadAHead")) ReadAHead = atoi(Value); else if (!strcasecmp(Name, "Gain")) Gain = atoi(Value); + else if (!strcasecmp(Name, "AC3dynrng")) AC3dynrng = atoi(Value); else return false; return true; @@ -67,6 +68,7 @@ Add(new cMenuEditBoolItem(tr("Setup.DVD$Hide Mainmenu Entry"), &data.HideMainMenu)); Add(new cMenuEditBoolItem(tr("Setup.DVD$ReadAHead"), &data.ReadAHead)); Add(new cMenuEditIntItem( tr("Setup.DVD$Gain (analog)"), &data.Gain, 0, 10)); + Add(new cMenuEditBoolItem(tr("Setup.DVD$A52 DRC"), &data.AC3dynrng)); } void cMenuSetupDVD::Store(void) @@ -80,6 +82,7 @@ SetupStore("HideMainMenu", DVDSetup.HideMainMenu ); SetupStore("ReadAHead", DVDSetup.ReadAHead ); SetupStore("Gain", DVDSetup.Gain ); + SetupStore("AC3dynrng", DVDSetup.AC3dynrng ); }