0
0

Hi All,

Every time I load an mp3 file I call the following methods:

m_AudioSystem->createSound(strSongFileName,(FMOD_MODE)(FMOD_CREATESTREAM | FMOD_ACCURATETIME |FMOD_SOFTWARE),NULL,&m_Song);

char szSongName[MAX_SONG_NAME_LENGTH];
if(FMODERRCHECK(m_Song->getName(szSongName,MAX_SONG_NAME_LENGTH)))

unsigned int unPosition = 0;
m_Channel->getPosition(&unPosition,FMOD_TIMEUNIT_MS);

I check all the error codes returned from the methods(I removed it here to make it short) but sometimes (not most of the times) the getposition method fails with error 32.

What am I doing wrong, I can workaround it and assume the position is – 0 but I am afraid that it is somthing wrong I do.

Thanks.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.