Workaround for a bug(?) in bug in SoX' gain/normalization filter that sometimes caused the "normalized" file to be empty.

This commit is contained in:
LoRd_MuldeR 2011-09-05 22:42:23 +02:00
parent 9e9b3ed25e
commit 64696fa133
3 changed files with 211 additions and 211 deletions

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,7 @@
#define VER_LAMEXP_MINOR_LO 3
#define VER_LAMEXP_TYPE Beta
#define VER_LAMEXP_PATCH 1
#define VER_LAMEXP_BUILD 681
#define VER_LAMEXP_BUILD 682
///////////////////////////////////////////////////////////////////////////////
// Tools versions

View File

@ -55,7 +55,7 @@ bool NormalizeFilter::apply(const QString &sourceFile, const QString &outputFile
args << QDir::toNativeSeparators(sourceFile);
args << QDir::toNativeSeparators(outputFile);
args << "gain";
args << "-n" << QString().sprintf("%.2f", static_cast<double>(m_peakVolume) / 100.0);
args << "-ne" << QString().sprintf("%.2f", static_cast<double>(m_peakVolume) / 100.0);
if(!startProcess(process, m_binary, args))
{