From 5eaf25ccd7562b82392627b78b5289f5a19ac65a Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Wed, 6 Aug 2008 19:12:14 +0000 Subject: [PATCH] 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 --- lib/service/servicemp3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2