From 99d6e6db5ce2c0fcb8c3884d7b834ab6728daa66 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 23 Oct 2006 01:37:59 +0000 Subject: Add patch to make ProTracker a subclass of AudioStream, from madmoose svn-id: r24465 --- sound/mods/module.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sound/mods/module.h') 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 -- cgit v1.2.3