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 - Mix_GetMusicPosition, Mix_FFMusic, Mix_RewMusic
Summary: Mix_GetMusicPosition, Mix_FFMusic, Mix_RewMusic
Status: ASSIGNED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: All All
: P2 API change
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-27 02:24 UTC by Sam Lantinga
Modified: 2009-10-03 02:03 UTC (History)
0 users

See Also:


Attachments
patch.diff (1.18 KB, patch)
2006-01-27 02:25 UTC, Sam Lantinga
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!