0
0

Hi,
I have a question.

How can I handle the error at FSOUND_Stream_OpenFile in Delphi.
Here is the source:

procedure TForm1.Button1Click(Sender: TObject);
var
Zene:PFSoundStream;
begin
Fmod.FSOUND_Init(44100,32,0);
Zene:=Fmod.FSOUND_Stream_OpenFile(‘ Music.wma’,FSOUND_ENABLEFX,0);
end;

And in this source the program halt because you can’t use FSOUND_ENABLEFX on wma. This function return null in case of error, but how can I handle it???

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.