mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-22 20:02:03 +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)
|
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…
Reference in a new issue