I have a problem reading 24-bit/96 kHz flac files, while other files seem to be working fine.
Opening the file works correct:
[code:fhxzv3xk]fmod_result = fmod_system->createSound(fileName, (FMOD_MODE)(FMOD_SOFTWARE | FMOD_2D | FMOD_CREATESTREAM | FMOD_OPENONLY),NULL , &fmod_sound);[/code:fhxzv3xk]
The returned length, number of bits, samplerate and channels are all correct, so it seems the file was opened correctly.
When trying to read from it, using
[code:fhxzv3xk]fm_result = fmod_sound->readData(&tmpBuffer2, 510, read);[/code:fhxzv3xk]
I get an error FMOD_ERR_FILE_EOF at the first read.
A 96 khz/24-bit wav file which uses exactly the same code is loading fine.
- Adion asked 11 years ago
I’ve got this file from a user. I also have the wav that it was made of and that plays.
This user says 24-bit/96khz flac files worked in older versions of my software (probably with an older version of fmod), but stopped working in the recent versions.
I’m not completely sure about this particular file. It plays one second of silence with winamp here, but even with the older version of my software it doesn’t load with fmod at all. (fmod version was 4.4.26)
I’ve asked the user if it was supposed to be just silence.
The user says this file plays fine in his winamp, but he has an older version of the flac plugin installed apparently ("reference flac decoder v1.0beta6a")
I managed to decode the file using the FLAC frontend as installed with the latest flac binaries (1.1.3) though, and the resulting wav file does indeed play, so it appears that the latest flac version should at least be compatible with these files.
Is that supposed to make a sound because no program i have will load or open that file. winamp barfs on it.
Its possible we need to update the flac source base because its some new feature that wasnt previously supported but there’s no bug in fmod with this file by the look of it.
Please login first to submit.