mirror of
https://github.com/TheGameratorT/NitroWAV-Tool.git
synced 2025-06-18 13:55:32 -04:00
Fix loop point detection problems.
This commit is contained in:
parent
9568bbe381
commit
a9a107d360
@ -102,6 +102,8 @@ bool MainWindow::GetLoopMarkers(WAVStruct* wav, int fileSize, int& loopStart, in
|
||||
if(!ok)
|
||||
{
|
||||
aloopStart = ReadWAVTag(wav, fileSize, "[");
|
||||
if(aloopStart == "")
|
||||
return false;
|
||||
loopStart = aloopStart.toInt(&ok);
|
||||
}
|
||||
|
||||
@ -118,6 +120,8 @@ bool MainWindow::GetLoopMarkers(WAVStruct* wav, int fileSize, int& loopStart, in
|
||||
if(!ok)
|
||||
{
|
||||
aloopEnd = ReadWAVTag(wav, fileSize, "]");
|
||||
if(aloopEnd == "")
|
||||
return false;
|
||||
loopEnd = aloopEnd.toInt(&ok);
|
||||
}
|
||||
|
||||
@ -204,7 +208,7 @@ bool MainWindow::ReadWAV(QFile& file)
|
||||
{
|
||||
useMarkers = true;
|
||||
}
|
||||
else
|
||||
else if (gotMarkers && gotSamples)
|
||||
{
|
||||
QMessageBox msgBox;
|
||||
msgBox.setIcon(QMessageBox::Information);
|
||||
|
Loading…
Reference in New Issue
Block a user