/* * SSEQ Player - SDAT SWAV (Waveform/Sample) structure * By Naram Qashat (CyberBotX) [cyberbotx@cyberbotx.com] * Last modification on 2013-04-10 * * Nintendo DS Nitro Composer (SDAT) Specification document found at * http://www.feshrine.net/hacking/doc/nds-sdat.html */ #ifndef SSEQPLAYER_SWAV_H #define SSEQPLAYER_SWAV_H #include "common.h" struct SWAV { uint8_t waveType; uint8_t loop; uint16_t sampleRate; uint16_t time; uint32_t loopOffset; uint32_t nonLoopLength; std::vector data; const int16_t *dataptr; SWAV(); void Read(PseudoFile &file); void DecodeADPCM(const std::vector &data); }; #endif