26 #ifndef AUDIO_SOUNDFONT_RIFFFILE_H 27 #define AUDIO_SOUNDFONT_RIFFFILE_H 29 #include "common/scummsys.h" 30 #include "common/list.h" 31 #include "common/str.h" 32 #include "common/array.h" 45 assert(theId.size() == 4);
46 memcpy(_id, theId.c_str(), 4);
56 void SetData(
const void *src, uint32 datasize);
58 virtual uint32 GetSize();
59 virtual void Write(uint8 *buffer);
62 static inline uint32 GetPaddedSize(uint32 originalSize) {
return originalSize + (originalSize % 2); }
76 assert(theType.size() == 4);
77 memcpy(_type, theType.c_str(), 4);
86 virtual uint32 GetSize();
87 virtual void Write(uint8 *buffer);
131 #endif // AUDIO_SOUNDFONT_RIFFFILE_H
Definition: rifffile.h:93
Definition: rifffile.h:109
Definition: rifffile.h:37
iterator end()
Definition: list.h:240
iterator begin()
Definition: list.h:227
Definition: rifffile.h:69
iterator erase(iterator pos)
Definition: list.h:95
Definition: rifffile.h:101