mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
SDL fix for I_SetSongPosition
# Conflicts: # src/sdl12/mixer_sound.c
This commit is contained in:
parent
8981ef2cdc
commit
aed388976c
1 changed files with 3 additions and 4 deletions
|
@ -738,10 +738,9 @@ boolean I_SetSongSpeed(float speed)
|
|||
|
||||
boolean I_SetSongPosition(UINT32 position)
|
||||
{
|
||||
int r;
|
||||
Mix_RewindMusic(); // needed for MP3
|
||||
r = Mix_SetMusicPosition(position*1000);
|
||||
return r == 0;
|
||||
Mix_PlayMusic(music, 0);
|
||||
Mix_SetMusicPosition((float)(position/1000.0L));
|
||||
return 1;
|
||||
}
|
||||
|
||||
UINT32 I_GetSongPosition(void)
|
||||
|
|
Loading…
Reference in a new issue