OSDN Git Service

Tweaked downmix channel weights.
authorlordmulder <mulder2@gmx.de>
Sun, 7 Aug 2011 21:54:47 +0000 (23:54 +0200)
committerlordmulder <mulder2@gmx.de>
Sun, 7 Aug 2011 21:54:47 +0000 (23:54 +0200)
src/Config.h
src/Filter_Downmix.cpp

index 62f5d63..7f301e3 100644 (file)
@@ -30,7 +30,7 @@
 #define VER_LAMEXP_MINOR_LO                                    3
 #define VER_LAMEXP_TYPE                                                Alpha
 #define VER_LAMEXP_PATCH                                       9
-#define VER_LAMEXP_BUILD                                       628
+#define VER_LAMEXP_BUILD                                       629
 
 ///////////////////////////////////////////////////////////////////////////////
 // Tools versions
index a71b229..213820e 100644 (file)
@@ -66,21 +66,22 @@ bool DownmixFilter::apply(const QString &sourceFile, const QString &outputFile,
        switch(channels)
        {
        case 3:
-               args << "remix" << "1,3" << "2,3";
+               args << "remix" << "1v0.66,3v0.34" << "2v0.66,3v0.34";
                break;
        case 4:
-               args << "remix" << "1,3,4" << "2,3,4";
+               args << "remix" << "1v0.5,3v0.25,4v0.25" << "2v0.5,3v0.25,4v0.25";
                break;
        case 6:
-               args << "remix" << "1,3,4,5" << "2,3,4,6";
+               args << "remix" << "1v0.4,3v0.2,4v0.2,5v0.2" << "2v0.4,3v0.2,4v0.2,6v0.2";
                break;
        case 8:
-               args << "remix" << "1,3,4,5,7" << "2,3,4,6,8";
+               args << "remix" << "1v0.36,3v0.16,4v0.16,5v0.16,7v0.16" << "2v0.36,3v0.16,4v0.16,6v0.16,8v0.16";
                break;
        case 9:
-               args << "remix" << "1,3,4,5,7,9" << "2,3,4,6,8,9";
+               args << "remix" << "1v0.308,3v0.154,4v0.154,5v0.154,7v0.154,9v0.076" << "2v0.308,3v0.154,4v0.154,6v0.154,8v0.154,9v0.076";
                break;
        default:
+               qWarning("Downmixer: Unknown channel configuration!");
                args << "channels" << "2";
                break;
        }