aboutsummaryrefslogtreecommitdiff
path: root/audio/mods
diff options
context:
space:
mode:
authorKirben2015-05-22 10:29:50 +1000
committerKirben2015-05-22 10:30:38 +1000
commitf58be61a3d914566f02189d4f49410d8c917d5b5 (patch)
treebac0b424b393784a43b7bb6a808568bbd2455ccd /audio/mods
parent6d08055db3368dbaadb22e82d78c86bcb1026950 (diff)
downloadscummvm-rg350-f58be61a3d914566f02189d4f49410d8c917d5b5.tar.gz
scummvm-rg350-f58be61a3d914566f02189d4f49410d8c917d5b5.tar.bz2
scummvm-rg350-f58be61a3d914566f02189d4f49410d8c917d5b5.zip
AUDIO: Add patch from madmoose to fix arpeggio effect in ProTracker modules.
Diffstat (limited to 'audio/mods')
-rw-r--r--audio/mods/protracker.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/audio/mods/protracker.cpp b/audio/mods/protracker.cpp
index 82067f67bd..2578e9488a 100644
--- a/audio/mods/protracker.cpp
+++ b/audio/mods/protracker.cpp
@@ -219,11 +219,10 @@ void ProtrackerStream::updateRow() {
case 0x0:
if (exy) {
_track[track].arpeggio = true;
- if (note.period) {
- _track[track].arpeggioNotes[0] = note.note;
- _track[track].arpeggioNotes[1] = note.note + ex;
- _track[track].arpeggioNotes[2] = note.note + ey;
- }
+ byte trackNote = _module.periodToNote(_track[track].period);
+ _track[track].arpeggioNotes[0] = trackNote;
+ _track[track].arpeggioNotes[1] = trackNote + ex;
+ _track[track].arpeggioNotes[2] = trackNote + ey;
}
break;
case 0x1: