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:
parent
9e9b3ed25e
commit
64696fa133
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user