Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct RIFF header to 40k and add warning about unpacking with RIFF headers #791

Merged
merged 2 commits into from
Sep 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/ld-lds-converter/dataconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ void DataConverter::unpackFile(void)

// Are we writing a RIFF header?
if (isRIFF) {
// Writes a WAV RIFF header, 44.1k, mono, 16-bit signed
QString riffHex = "52494646FFFFFFFF57415645666D7420100000000100010044AC000088580100020010004C4953541A000000494E464F495346540E0000004C61766635382E32392E3130300064617461FFFFFFFF";
// Writes a WAV RIFF header, 40k, mono, 16-bit signed
QString riffHex = "52494646FFFFFFFF57415645666D74201000000001000100409C000088580100020010004C4953541A000000494E464F495346540E0000004C61766635382E32392E3130300064617461FFFFFFFF";
QByteArray riffArray = QByteArray::fromHex(riffHex.toLatin1());
outputFileHandle->write(riffArray);
}
Expand Down
2 changes: 1 addition & 1 deletion tools/ld-lds-converter/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int main(int argc, char *argv[])

// Option to unpack 10-bit data with RIFF WAV headers (-r)
QCommandLineOption showRIFFOption(QStringList() << "r" << "riff",
QCoreApplication::translate("main", "Unpack 10-bit data into 16-bit with RIFF WAV headers"));
QCoreApplication::translate("main", "Unpack 10-bit data into 16-bit with RIFF WAV headers (use this ONLY for FlaCCL)"));
parser.addOption(showRIFFOption);

// Process the command line arguments given by the user
Expand Down