Add static build and move message print.

This commit is contained in:
TheGameratorT 2020-06-30 10:31:06 +01:00
parent 60178a3783
commit 1546a54f8e
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
CONFIG += c++11 static
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings

View File

@ -266,10 +266,12 @@ bool MainWindow::ReadWAV(QFile& file)
raw_data.resize(wav->Subchunk2Size);
memcpy(raw_data.data(), wav->Data, wav->Subchunk2Size);
printCon("Info: Converting unsigned PCM-8 to signed PCM-8...");
if(wav->BitsPerSample == 8)
{
printCon("Info: Converting unsigned PCM-8 to signed PCM-8...");
for(int i = 0; i < raw_data.size(); i++)
raw_data.data()[i] -= 0x80;
}
printCon("Info: Done and ready for conversion!");