0
0

Hello i´m working on a mp3system for a hl1 mod.

i´ve everything up but i´m struggling with the songlength.

how can i get the songlength?

i´m using fmod 3.7.1.

has anyone a documention of 3.7.1?

greetz

grandc

  • You must to post comments
0
0

FSOUND_Stream_GetLengthMs?

  • You must to post comments
0
0

i thought of that but i dont get how to use it correct

i use it that way
[code:2roypw9p]
if(m_eStatus == MP3_PLAY)
m_PlTime = FMOD->FSOUND_Stream_GetLengthMs(stream);
else if(m_eStatus == MP3_STOP)
m_PlTime = 0;[/code:2roypw9p]

and in vgui_mp3menu i use that
[code:2roypw9p]
int a,b,time;

time = gHUD.m_mp3player.m_PlTime;
a = time/60;
b = time%60;
if(b < 10 && a < 10)
sprintf(m_szTime, "0%i:0%i", a,b);
else if(b < 10 && a >= 10)    
sprintf(m_szTime, "%i:0%i", a,b);
else if(b >= 10 && a < 10)
sprintf(m_szTime, "0%i:%i", a,b);
else
sprintf(m_szTime, "%i:%i", a,b);

m_pTime->setText(m_szTime );[/code:2roypw9p]

it always returns 0:00 in my menu

the time var does recieve the time from the mp3player

  • You must to post comments
0
0

the FSOUND_Stream_GetTime function has to be used to get the time

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.