mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-02-14 07:41:37 +00:00
libxmp backend: Set starting subsong correctly
This commit is contained in:
parent
3944bbc756
commit
7062053c04
1 changed files with 4 additions and 1 deletions
|
@ -153,7 +153,10 @@ bool XMPSong::GetData(void *buffer, size_t len)
|
||||||
|
|
||||||
bool XMPSong::Start()
|
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)
|
StreamSource* XMP_OpenSong(MusicIO::FileInterface* reader, int samplerate)
|
||||||
|
|
Loading…
Reference in a new issue