diff options
author | Travis Howell | 2006-10-23 01:37:59 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-23 01:37:59 +0000 |
commit | 99d6e6db5ce2c0fcb8c3884d7b834ab6728daa66 (patch) | |
tree | de10147775e39e456d316bfc0f822cdc30bb71d0 /sound/mods/module.h | |
parent | f0a162e8bbfd06340ec63348f5fcfdaca7349bc1 (diff) | |
download | scummvm-rg350-99d6e6db5ce2c0fcb8c3884d7b834ab6728daa66.tar.gz scummvm-rg350-99d6e6db5ce2c0fcb8c3884d7b834ab6728daa66.tar.bz2 scummvm-rg350-99d6e6db5ce2c0fcb8c3884d7b834ab6728daa66.zip |
Add patch to make ProTracker a subclass of AudioStream, from madmoose
svn-id: r24465
Diffstat (limited to 'sound/mods/module.h')
-rw-r--r-- | sound/mods/module.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sound/mods/module.h b/sound/mods/module.h index 4073d5d4ec..1e87b7e1ea 100644 --- a/sound/mods/module.h +++ b/sound/mods/module.h @@ -24,7 +24,7 @@ #ifndef SOUND_MODS_MODULE_H #define SOUND_MODS_MODULE_H -#include "common/file.h" +#include "common/stream.h" namespace Modules { @@ -36,12 +36,16 @@ namespace Modules { * like they are in the file. */ +#include "common/pack-start.h" // START STRUCT PACKING + struct note_t { byte sample; uint16 period; uint16 effect; }; +#include "common/pack-end.h" // END STRUCT PACKING + typedef note_t pattern_t[64][4]; struct sample_t { @@ -51,7 +55,7 @@ struct sample_t { byte vol; uint16 repeat; uint16 replen; - byte *data; + int8 *data; }; class Module { @@ -69,8 +73,7 @@ public: Module(); ~Module(); - bool load(const char *fn); - bool loadStream(Common::SeekableReadStream &st); + bool load(Common::ReadStream &stream); }; } // End of namespace Modules |