OSDN Git Service

Welcome to year 2013 ;-)
[lamexp/LameXP.git] / src / Tool_WaveProperties.cpp
index ff2b1f9..a090b8e 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // LameXP - Audio Encoder Front-End
-// Copyright (C) 2004-2012 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2013 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -96,7 +96,7 @@ bool WaveProperties::detect(const QString &sourceFile, AudioFileModel *info, vol
                        {
                                bool ok = false;
                                unsigned int tmp = regExp_encoding.cap(1).toUInt(&ok);
-                               if(ok) info->setFormatAudioBitdepth(tmp);
+                               if(ok) info->setFormatAudioBitdepth((tmp == 32) ? AudioFileModel::BITDEPTH_IEEE_FLOAT32 : tmp);
                                emit statusUpdated(qMin(progress += 25, 100));
                        }
                        if(regExp_samplerate.lastIndexIn(text) >= 0)