Recent

Author Topic: How to loop audio file with ACS  (Read 1230 times)

vercetti

  • New member
  • *
  • Posts: 7
How to loop audio file with ACS
« on: January 25, 2024, 11:23:14 am »
Hi guys. Stupid problem, but i can't understand why it's not working)

I'm trying to loop audio file with ACS (Audio Components Suite)

var
    AudioOut: TACSAudioOut;
    FileIn: TACSFileIn;
begin
      AudioOut := TAcsAudioOut.Create(nil);
      FileIn := TAcsFileIn.Create(nil);
      FileIn.FileName := 'path to source audio file';
      FileIn.Loop := True;
      AudioOut.Input := FileIn;
      AudioOut.Driver := 'Wavemapper';
      AudioOut.Buffersize:= 40000;
      AudioOut.Run;
end;

But audio file sounds just one time. What i'm doing wrong ?

jamie

  • Hero Member
  • *****
  • Posts: 6520
Re: How to loop audio file with ACS
« Reply #1 on: February 04, 2024, 03:28:09 pm »
Implement the OnDone event and restart it in the AudioOut ?
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018