Warning: Undefined array key "translationlc" in /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/parser/code.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/parser/code.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/parser/code.php on line 35
uses
Gorilla.Audio.FMOD,
Gorilla.Audio.FMOD.Sound;
var
FFMOD : TGorillaFMODAudioManager;
procedure TForm1.FormShow(Sender: TObject);
var LPath : String;
LSound : IGorillaFMODSound;
begin
FFMOD := TGorillaFMODAudioManager.Create(Self);
FFMOD.Parent := Form1;
LPath := IncludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))) + 'demo.mp3';
LSound := FFMOD.LoadSoundFromFile(LPath);
FFMOD.PlaySound(LSound, nil, false, 0);
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
// Timer1.Interval := 33;
FFMOD.Update();
end;