From: Andreas Frisch Date: Wed, 6 Aug 2008 19:12:14 +0000 (+0000) Subject: allow mono playback. this might possibly break playback of audio files with more... X-Git-Tag: 2.6.0~964 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/5eaf25ccd7562b82392627b78b5289f5a19ac65a allow mono playback. this might possibly break playback of audio files with more than 2 channels, however - i doubt that there really is anything like that and the cpu is not gonna be able to perform the downmix in realtime anyways --- diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index aef4f5e2..4d36ba86 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -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); }