It seems that since some versions (don’t know when it started) there is a problem with readData on a CD always returning data starting from the first track.
The cd player example works fine, so I think it’s a problem with readData only.
Here’s what I try:
fmod_result = fmod_system->createSound(fileName, (FMOD_MODE)(FMOD_SOFTWARE | FMOD_2D | FMOD_CREATESTREAM | FMOD_OPENONLY),NULL , &fmod_sound);
fmod_result = fmod_sound->getLength(&length, FMOD_TIMEUNIT_PCM);
fmod_result = fmod_sound->readData(tmpBuffer, 512, read);
The length returned is correct and different for each track (so I assume getSubSound was working correct), but readData always returns data from the first track.
- Adion asked 13 years ago
- You must login to post comments
Please login first to submit.