Fix build

This commit is contained in:
erorcun 2020-10-18 20:09:55 +03:00
parent a6aa782d6d
commit 0eb4aca1d6
1 changed files with 2 additions and 3 deletions

View File

@ -2176,8 +2176,7 @@ cSampleManager::StartStreamedFile(uint8 nFile, uint32 nPos, uint8 nStream)
if ( mp3Stream[nStream] ) if ( mp3Stream[nStream] )
{ {
AIL_set_stream_loop_count(mp3Stream[nStream], 1); AIL_set_stream_loop_count(mp3Stream[nStream], 1);
AIL_set_stream_loop_count(mp3Stream[nStream], nStreamLoopedFlag[nStream] ? 0 : 1); AIL_set_stream_ms_position(mp3Stream[nStream], position);
nStreamLoopedFlag[nStream] = true;
AIL_pause_stream(mp3Stream[nStream], 0); AIL_pause_stream(mp3Stream[nStream], 0);
return true; return true;
} }
@ -2332,4 +2331,4 @@ cSampleManager::InitialiseSampleBanks(void)
return true; return true;
} }
#endif #endif