mirror of
https://github.com/TheGameratorT/NitroWAV-Tool.git
synced 2025-06-18 13:55:32 -04:00
Add static build and move message print.
This commit is contained in:
parent
60178a3783
commit
1546a54f8e
@ -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
|
||||
|
@ -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!");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user