diff options
Diffstat (limited to 'sound/mods/module.h')
-rw-r--r-- | sound/mods/module.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/mods/module.h b/sound/mods/module.h index 041eebc269..0d2282f770 100644 --- a/sound/mods/module.h +++ b/sound/mods/module.h @@ -53,12 +53,19 @@ struct sample_t { int8 *data; }; +struct sample_offs { + byte name[23]; + uint16 len; + uint32 offs; +}; + class Module { public: byte songname[21]; static const int NUM_SAMPLES = 31; sample_t sample[NUM_SAMPLES]; + sample_offs commonSamples[NUM_SAMPLES]; byte songlen; byte undef; @@ -69,7 +76,7 @@ public: Module(); ~Module(); - bool load(Common::ReadStream &stream); + bool load(Common::SeekableReadStream &stream, int offs); static byte periodToNote(int16 period, byte finetune = 0); static int16 noteToPeriod(byte note, byte finetune = 0); |