0
0

Hi!

I’m detecting serious bug in FMODEX.DLL

FSB BANK file – Ver. 3.1 (stereo + mono) ADPCM compression.

When extract wav files to PCM format, mono files extracting as STEREO!!!
//
fillchar( sndInfoEx, sizeof( sndInfoEx ), 0 );
sndInfoEx.cbsize := sizeof( sndInfoEx );

FMOD_System_Init(sSystem, 1, FMOD_INIT_NORMAL, Nil);
FMOD_System_CreateSound(sSystem, PAnsiChar(Source),
FMOD_OPENONLY or FMOD_ACCURATETIME,
@sndInfoEx, fsbSound);
FMOD_Sound_GetNumSubSounds(fsbSound, subSounds);
for i:= 0 to subSounds – 1 do
begin
FMOD_Sound_GetSubSound(fsbSound, i, dataSound);
FMOD_Sound_GetName(dataSound, PAnsiChar(SoundName),
length(SoundName ) );
FMOD_Sound_GetLength(dataSound, DataLen,
FMOD_TIMEUNIT_PCMBYTES);
FMOD_Sound_GetFormat(dataSound, SoundType, SoundFormat,
nChannels, vBitsPerSample);
FMOD_Sound_GetDefaults(dataSound, DefFric,
DefVol, DefPan, Prior);
FMOD_Sound_SeekData(dataSound, 0);
FMOD_Sound_ReadData( dataSound, @UserData, ChunkLen, Readlen );
end;

UserData – (nChannels = 1 or nChannels = 2) allways STEREO why? BUG?

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.