allow mono playback. this might possibly break playback of audio files with more...
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 6 Aug 2008 19:12:14 +0000 (19:12 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Wed, 6 Aug 2008 19:12:14 +0000 (19:12 +0000)
anything like that and the cpu is not gonna be able to perform the downmix in realtime anyways

lib/service/servicemp3.cpp

index aef4f5e..4d36ba8 100644 (file)
@@ -211,7 +211,7 @@ eServiceMP3::eServiceMP3(const char *filename): m_filename(filename), m_pump(eAp
                        /* endianness, however, is not required to be set anymore. */
                if (flt)
                {
-                       GstCaps *caps = gst_caps_new_simple("audio/x-raw-int", /* "endianness", G_TYPE_INT, 4321, */ "depth", G_TYPE_INT, 16, "width", G_TYPE_INT, 16, "channels", G_TYPE_INT, 2, (char*)0);
+                       GstCaps *caps = gst_caps_new_simple("audio/x-raw-int", /* "endianness", G_TYPE_INT, 4321, */ "depth", G_TYPE_INT, 16, "width", G_TYPE_INT, 16, /*"channels", G_TYPE_INT, 2, */(char*)0);
                        g_object_set (G_OBJECT (flt), "caps", caps, (char*)0);
                        gst_caps_unref(caps);
                }