Fixes and style changes from miami

This commit is contained in:
erorcun 2020-10-18 19:16:37 +03:00
commit a6aa782d6d
18 changed files with 861 additions and 248 deletions

View file

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