diff options
author | Sven Hesse | 2007-01-27 21:55:26 +0000 |
---|---|---|
committer | Sven Hesse | 2007-01-27 21:55:26 +0000 |
commit | 5dab7f823fc757a9225f384ca90d1ff6664c6c33 (patch) | |
tree | 954eb47503b2fa5c1a6820d31ffa3117ab6a7e0c /sound/mods/module.h | |
parent | 89ede9162f1d97e20f6a2958fce323cf7933b081 (diff) | |
download | scummvm-rg350-5dab7f823fc757a9225f384ca90d1ff6664c6c33.tar.gz scummvm-rg350-5dab7f823fc757a9225f384ca90d1ff6664c6c33.tar.bz2 scummvm-rg350-5dab7f823fc757a9225f384ca90d1ff6664c6c33.zip |
Implemented some missing effects (arpeggio, sample delay, fine slides, finetune, pattern delay)
svn-id: r25229
Diffstat (limited to 'sound/mods/module.h')
-rw-r--r-- | sound/mods/module.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/mods/module.h b/sound/mods/module.h index b62a8f47cb..c302d490b1 100644 --- a/sound/mods/module.h +++ b/sound/mods/module.h @@ -32,6 +32,7 @@ namespace Modules { struct note_t { byte sample; + byte note; uint16 period; uint16 effect; }; @@ -67,6 +68,11 @@ public: ~Module(); bool load(Common::ReadStream &stream); + byte static periodToNote(int16 period, byte finetune = 0); + int16 static noteToPeriod(byte note, byte finetune = 0); + +private: + static const int16 periods[16][60]; }; } // End of namespace Modules |