Skip to content

Commit

Permalink
Fix binary for V2
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed Sep 25, 2024
1 parent f52df0f commit 28d7c72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OTRExporter/AudioExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ void OTRExporter_Audio::WriteSoundFontEntry(ZAudio* audio, SoundFontEntry* entry

if (entry != nullptr)
{
// This second byte isn't used but is needed to maintain compatibility with the V2 format.
writer->Write((uint8_t)(entry != nullptr ? 1 : 0));
writer->Write(GetSampleEntryReference(audio, entry->sampleEntry, samples));
writer->Write(entry->tuning);
}
Expand Down Expand Up @@ -363,8 +365,8 @@ void OTRExporter_Audio::Save(ZResource* res, const fs::path& outPath, BinaryWrit
}

// Write the soundfont table
WriteSoundFontTableXML(audio);
WriteSoundFontTableBinary(audio);

// Write Sequences
WriteSequenceXML(audio);
WriteSequenceBinary(audio);
}

0 comments on commit 28d7c72

Please sign in to comment.