We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 94

Summary: Mix_GetMusicPosition, Mix_FFMusic, Mix_RewMusic
Product: SDL_mixer Reporter: Sam Lantinga <slouken>
Component: miscAssignee: Sam Lantinga <slouken>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: API change    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: patch.diff

Description Sam Lantinga 2006-01-27 02:24:38 UTC
Date: Sun, 23 May 2004 15:39:33 -0300
From: Emmanuel NM <emmanuelnm@softhome.net>
Subject: [SDL] SDL_Mixer - [Patch]  A couple of new functions

Hi  everyone,

I implemented 3 functions for the SDL_mixer library,  in the file music.c

    Mix_GetMusicPosition()  - Returns the current position in seconds.
    Mix_FFMusic(seconds) -  Fast Forward in seconds from the current
position. Only for MP3 and OGG
    Mix_RewMusic(seconds) - Rewind in seconds from the current position.
Only for MP3 and OGG.

apply the patch with :    "patch music.c patch.diff".

Sorry about my English.
Let me know what you think
Comment 1 Sam Lantinga 2006-01-27 02:25:02 UTC
Created attachment 44 [details]
patch.diff
Comment 2 Ryan C. Gordon 2006-01-27 11:23:28 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 3 Sam Lantinga 2009-10-03 02:03:00 UTC
These functions aren't as precise as you might expect, but we might be able to use SDL_GetTicks() to improve precision.

Thanks!