0
0

Hi,
I try to convert a delphi project from Fmod 3.x To Fmod Ex.
When I try to Rip a CD Track I always get data from track 0.
I do the following :
Res:=FMOD_Sound_GetSubSound(FModStream,5,FModTrack);
If Res<>FMOD_OK Then
Begin
FMOD_Sound_Release(FModStream);
Exit;
End;

Res:=FMOD_Sound_GetLength(FModTrack,LenTrack,FMOD_TIMEUNIT_PCMBYTES);
If Res<>FMOD_OK Then Exit;
// Length seems to be OK

Res:=FMOD_Sound_ReadData(FModTrack,Buffer,BUFFER_LEN,LenRead);
If Res=FMOD_OK Then WriteSamples

What’s wrong ?
Do I need to “manually” seek data (Sound_SeekData) ?

I also seen a pb in this declaration (fmodtypes) :
FMOD_CHANNEL_CALLBACK = function (channel: FMOD_CHANNEL; evdata: Cardinal; callbacktype: Cardinal; command: Integer; commanddata1, commanddata2: Cardinal): FMOD_RESULT; stdcall;
evdata is not documented in Fmod Ex help ?

Best Regards
JCL

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.