mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-02 14:12:47 +00:00
SDL fix for I_SetSongPosition
# Conflicts: # src/sdl12/mixer_sound.c
This commit is contained in:
parent
55ef2d1d20
commit
6d82e03710
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…
Add table
Reference in a new issue