diff options
| author | illegalinstruction <[email protected]> | 2019-12-21 04:02:54 -0800 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-12-21 13:02:54 +0100 |
| commit | caa1f456439a3d8769a7d05c5edbf7aa824f3e9a (patch) | |
| tree | f046a1aebeb45b27751ac9d352cc343a4f9a468e /src/raudio.c | |
| parent | 5e8b6b01578ca3da6e55a9ebfa1f1a62d073ccb6 (diff) | |
| download | raylib-caa1f456439a3d8769a7d05c5edbf7aa824f3e9a.tar.gz raylib-caa1f456439a3d8769a7d05c5edbf7aa824f3e9a.zip | |
Forcibly ensure .xm playback starts in the right place; fixes #1043. (#1045)
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raudio.c b/src/raudio.c index f6a1e5f6..a2093d84 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1246,6 +1246,7 @@ Music LoadMusicStream(const char *fileName) music.stream = InitAudioStream(48000, 16, 2); music.sampleCount = (unsigned int)jar_xm_get_remaining_samples(ctxXm); music.loopCount = 0; // Infinite loop by default + jar_xm_reset(ctxXm); // make sure we start at the beginning of the song musicLoaded = true; music.ctxData = ctxXm; |
