/* * SSEQ Player - SDAT INFO Entry structures * By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] * * Nintendo DS Nitro Composer (SDAT) Specification document found at * http://www.feshrine.net/hacking/doc/nds-sdat.html */ #include #include #include "INFOEntry.h" #include "common.h" INFOEntrySEQ::INFOEntrySEQ() : fileID(0), bank(0), vol(0), ply(0) { } void INFOEntrySEQ::Read(PseudoFile &file) { this->fileID = file.ReadLE(); file.ReadLE(); // unknown this->bank = file.ReadLE(); this->vol = file.ReadLE(); if (!this->vol) this->vol = 0x7F; // Prevents nothing for volume file.ReadLE(); // cpr file.ReadLE(); // ppr this->ply = file.ReadLE(); } INFOEntryBANK::INFOEntryBANK() : fileID(0) { std::fill_n(&this->waveArc[0], 4, 0); } void INFOEntryBANK::Read(PseudoFile &file) { this->fileID = file.ReadLE(); file.ReadLE(); // unknown file.ReadLE(this->waveArc); } INFOEntryWAVEARC::INFOEntryWAVEARC() : fileID(0) { } void INFOEntryWAVEARC::Read(PseudoFile &file) { this->fileID = file.ReadLE(); file.ReadLE(); // unknown } INFOEntryPLAYER::INFOEntryPLAYER() : channelMask(0) { } void INFOEntryPLAYER::Read(PseudoFile &file) { file.ReadLE(); // maxSeqs this->channelMask = file.ReadLE(); file.ReadLE(); // heapSize }