mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-03 06:33:14 +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)
|
boolean I_SetSongPosition(UINT32 position)
|
||||||
{
|
{
|
||||||
int r;
|
Mix_PlayMusic(music, 0);
|
||||||
Mix_RewindMusic(); // needed for MP3
|
Mix_SetMusicPosition((float)(position/1000.0L));
|
||||||
r = Mix_SetMusicPosition(position*1000);
|
return 1;
|
||||||
return r == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT32 I_GetSongPosition(void)
|
UINT32 I_GetSongPosition(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue