28 #ifndef GOB_SOUND_SOUNDDESC_H 29 #define GOB_SOUND_SOUNDDESC_H 31 #include "common/endian.h" 56 byte *getData() {
return _dataPtr; }
58 uint32 size()
const {
return _size; }
59 bool empty()
const {
return !_dataPtr; }
60 SoundType getType()
const {
return _type; }
62 bool isId(int16
id)
const {
return _dataPtr && (_id == id); }
64 void set(SoundType type, byte *data, uint32 dSize);
65 bool load(SoundType type, byte *data, uint32 dSize);
66 bool load(SoundType type,
Resource *resource);
72 int16 calcFadeOutLength(int16 frequency);
73 uint32 calcLength(int16 repCount, int16 frequency,
bool fade);
83 bool loadSND(byte *data, uint32 dSize);
84 bool loadWAV(byte *data, uint32 dSize);
85 bool loadADL(byte *data, uint32 dSize);
90 #endif // GOB_SOUND_SOUNDDESC_H
Definition: sounddesc.h:43
Definition: resources.h:42