mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-01-30 20:31:06 +00:00
Merge pull request #63 from Cacodemon345/patch-3
libxmp backend: Set starting subsong correctly
This commit is contained in:
commit
628cd49221
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,10 @@ bool XMPSong::GetData(void *buffer, size_t len)
|
|||
|
||||
bool XMPSong::Start()
|
||||
{
|
||||
return xmp_start_player(context, samplerate, 0) >= 0;
|
||||
int ret = xmp_start_player(context, samplerate, 0);
|
||||
if (ret >= 0)
|
||||
xmp_set_position(context, subsong);
|
||||
return ret >= 0;
|
||||
}
|
||||
|
||||
StreamSource* XMP_OpenSong(MusicIO::FileInterface* reader, int samplerate)
|
||||
|
|
Loading…
Reference in a new issue