diff options
Diffstat (limited to 'sound/mods/tfmx.cpp')
-rw-r--r-- | sound/mods/tfmx.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/mods/tfmx.cpp b/sound/mods/tfmx.cpp index e8febe96a4..07173f4939 100644 --- a/sound/mods/tfmx.cpp +++ b/sound/mods/tfmx.cpp @@ -48,7 +48,12 @@ const uint16 Tfmx::noteIntervalls[64] = { 214, 202, 191, 180 }; Tfmx::Tfmx(int rate, bool stereo) -: Paula(stereo, rate), _resource(), _resourceSample(), _playerCtx() { + : Paula(stereo, rate), + _resource(), + _resourceSample(), + _playerCtx(), + _deleteResource(false) { + _playerCtx.stopWithLastPattern = false; for (int i = 0; i < kNumVoices; ++i) @@ -114,7 +119,7 @@ void Tfmx::interrupt() { --channel.macroWait; } - Paula::setChannelPeriod(channel.paulaChannel, channel.period); + Paula::setChannelPeriod(i, channel.period); if (channel.macroSfxRun >= 0) channel.macroSfxRun = 1; |