The music has never looped seamlessly. The current way was implemented like 10 years ago and I think it just tells WildMIDI to play the track to the end before manually starting it over. The new way should ideally use a WildMIDI function to make it seek to the beginning in a way that there's no gap with what WildMidi_GetOutput() is producing.
Relevant files:
|
bool fillBuffer(ALuint bufid, Span<char> buffer) |
|
size_t WildMidiSong::read(char *buffer, size_t count) |
The music has never looped seamlessly. The current way was implemented like 10 years ago and I think it just tells WildMIDI to play the track to the end before manually starting it over. The new way should ideally use a WildMIDI function to make it seek to the beginning in a way that there's no gap with what
WildMidi_GetOutput()is producing.Relevant files:
OpenTESArena/OpenTESArena/src/Audio/AudioManager.cpp
Line 159 in c1cb6d1
OpenTESArena/OpenTESArena/src/Audio/WildMidi.cpp
Line 44 in c1cb6d1