More FLAC workarounds. Using "--channel-map=none" will fix most cases, although we will loose the channel map for Wave files that contain a valid channel map. On the other hand, FLAC fails most of the time when trying to use the channel map from the Wave file.

This commit is contained in:
LoRd_MuldeR 2012-03-09 01:11:29 +01:00
parent 53af74148d
commit b0937f9001
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@
#define VER_LAMEXP_MINOR_LO 4
#define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 5
#define VER_LAMEXP_BUILD 904
#define VER_LAMEXP_BUILD 905
///////////////////////////////////////////////////////////////////////////////
// Tool versions (minimum expected versions!)

View File

@ -47,6 +47,7 @@ bool FLACEncoder::encode(const QString &sourceFile, const AudioFileModel &metaIn
QStringList args;
args << QString("-%1").arg(QString::number(qMax(0, qMin(8, m_configBitrate))));
args << "--channel-map=none";
if(!metaInfo.fileName().isEmpty()) args << "-T" << QString("title=%1").arg(metaInfo.fileName());
if(!metaInfo.fileArtist().isEmpty()) args << "-T" << QString("artist=%1").arg(metaInfo.fileArtist());
@ -152,7 +153,7 @@ bool FLACEncoder::isFormatSupported(const QString &containerType, const QString
const unsigned int *FLACEncoder::supportedChannelCount(void)
{
static const unsigned int supportedChannels[] = {2, 5, 6, NULL};
static const unsigned int supportedChannels[] = {2, 4, 5, 6, 7, 8, NULL};
return supportedChannels;
}