From 64b7468bf4144ad2160ca6ea91f1237a33e14898 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 8 Jun 2009 23:37:39 +0000 Subject: [PATCH] - Fixed: The initial play of a GME song always started track 0. SVN r1655 (trunk) --- docs/rh-log.txt | 1 + src/sound/music_gme.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index f497a0ac8..014236c75 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,5 @@ June 8, 2009 +- Fixed: The initial play of a GME song always started track 0. - Fixed: The RAWINPUT buffer that GetRawInputData() fills in is 40 bytes on Win32 but 48 bytes on Win64, so Raw Mouse on x64 builds was getting random data off the stack because I also interpreted the error return incorrectly. diff --git a/src/sound/music_gme.cpp b/src/sound/music_gme.cpp index 23fe38d33..08700c8b3 100644 --- a/src/sound/music_gme.cpp +++ b/src/sound/music_gme.cpp @@ -201,7 +201,7 @@ void GMESong::Play(bool looping, int track) { m_Status = STATE_Stopped; m_Looping = looping; - if (StartTrack(0) && m_Stream->Play(looping, 1)) + if (StartTrack(track) && m_Stream->Play(looping, 1)) { m_Status = STATE_Playing; }