Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed Sep 25, 2024
1 parent fdf9924 commit 5bc564b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OTRExporter/AudioExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ void OTRExporter_Audio::WriteSoundFontEntry(ZAudio* audio, SoundFontEntry* entry
void OTRExporter_Audio::WriteSoundFontEntry(ZAudio* audio, SoundFontEntry* entry,
std::map<uint32_t, SampleEntry*> samples, tinyxml2::XMLElement* xmlDoc,
const char* name) {
if (entry == nullptr) {
return;
}
tinyxml2::XMLElement* sfEntry = xmlDoc->InsertNewChildElement(name);

if (entry != nullptr) {
sfEntry->SetAttribute("SampleRef", GetSampleEntryReference(audio, entry->sampleEntry, samples).c_str());
sfEntry->SetAttribute("Tuning", entry->tuning);


}
xmlDoc->InsertEndChild(sfEntry);
}

Expand Down Expand Up @@ -177,7 +177,7 @@ void OTRExporter_Audio::WriteSoundFontTableXML(ZAudio* audio) {
instrument->SetAttribute("Loaded", i.loaded);
instrument->SetAttribute("NormalRangeLo", i.normalRangeLo);
instrument->SetAttribute("NormalRangeHi", i.normalRangeHi);
instrument->SetAttribute("ReleseRate", i.releaseRate);
instrument->SetAttribute("ReleaseRate", i.releaseRate);

WriteEnvData(i.env, instrument);

Expand Down

0 comments on commit 5bc564b

Please sign in to comment.