Skip to content
Snippets Groups Projects
Commit aed38897 authored by Marco Z's avatar Marco Z
Browse files

SDL fix for I_SetSongPosition

# Conflicts:
#	src/sdl12/mixer_sound.c
parent 8981ef2c
Branches
Tags
No related merge requests found
...@@ -738,10 +738,9 @@ boolean I_SetSongSpeed(float speed) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment