aboutsummaryrefslogtreecommitdiff
path: root/sound/mods/protracker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mods/protracker.cpp')
-rw-r--r--sound/mods/protracker.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/mods/protracker.cpp b/sound/mods/protracker.cpp
index 2a308407e4..8948ae4c20 100644
--- a/sound/mods/protracker.cpp
+++ b/sound/mods/protracker.cpp
@@ -78,6 +78,14 @@ void ProtrackerPlayer::loadModule(const char *fn) {
_module->load(fn);
}
+void ProtrackerPlayer::loadModuleStream(Common::SeekableReadStream &fs) {
+ if (_module)
+ delete _module;
+
+ _module = new Module();
+ _module->loadStream(fs);
+}
+
void ProtrackerPlayer::generateSound() {
_generatedSamplesOverflow += 5.0 * 44100.0 / (2.0 * _bpm);
int samples = (int)floor(_generatedSamplesOverflow);