0
0

Hello i want to display the song’s time like in winamp in minutes…how can i do that with FMOD???

Thank’s

  • You must to post comments
0
0

See the FMOD examples

You would have to write a function to convert seconds to minutes

Use FSOUND_Stream_GetLengthMs to get the length of the song in
milliseconds then divide it by 1000.

Use FSOUND_Stream_GetTime to get the current position in milliseconds
and divide it by 1000

This will give you duration and current position in seconds

  • You must to post comments
0
0

int milliseconds = FMOD->FSOUND_Stream_GetTime(File->Stream);

int minutes = milliseconds / 60000;
milliseconds -= (60000 * minutes);

int seconds = milliseconds / 1000;
milliseconds -= (1000 * seconds);

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.