inno-setupbass

Inno Setup : Loop Audio File Using BASS Audio Library's All Functions and Flags


Hello I know how to add a continuous music loop during an Inno Setup Install using BASS Audio Library.

But in this post, (which made me decide to use BASS.dll to do a continuous music loop during my Inno Setup Install), doesn't seems to be defined all flags supported by BASS.dll.

When I used the code described in this post, BASS Audio Library doesn't loop the playing MP3 File. It restarts the playback after the file completed playing successfully. Also second start takes more than 2 seconds. This is not a loop as I think.To be a loop, the audio file must continue re-playing with minimum gaps.

This post only defined EncodingFlag and BASS_SAMPLE_LOOP Flags to used with Pascal Script of Inno Setup.

But there seems to be more useful flags that can be used with BASS.dll such as BASS_SAMPLE_FLOAT,BASS_SAMPLE_PRESCAN.

I don't know how to define all Flags that supported by BASS.dll in Inno Setup like :

[Code]
const
  BASS_SAMPLE_LOOP = 4;
  BASS_ACTIVE_STOPPED = 0;
  BASS_ACTIVE_PLAYING = 1;
  BASS_ACTIVE_STALLED = 2;
  BASS_ACTIVE_PAUSED  = 3;
  BASS_UNICODE = $80000000;
  BASS_CONFIG_GVOL_STREAM = 5;

How can I define all Flags supported by BASS.dll?

I want to know this because I want to loop my MP3 Audio File after a specified time continuously.

Not to continuously loop from file's beginning to end.

Thanks in Advance.


Solution

  • Use the same syntax as you have in your question to define the additional flags.

    Values of the additional flags are defined here:
    http://bass.radio42.com/help/html/fdf43f28-d1cd-2951-c126-3ce35edaa7f5.htm