View Single Post
  #4  
Old 20-01-2021, 06:23
Ele's Avatar
Ele Ele is offline
Registered User
 
Join Date: Nov 2020
Location: Near Mars
Posts: 93
Thanks: 96
Thanked 96 Times in 37 Posts
Ele is on a distinguished road
Lightbulb xbass.dll v2.0

Quote:
Originally Posted by Balaji007 View Post
Hi friend
It is a simple doubt. I am trying with your example script. But it was played the song one time only. How repeat the song? Any solutions are available
It could be. So try the new version (v.2.0) of the xbass.dll. That's all you need.

(xbass.dll v2.0 requires "inno setup enhanced edition")


xbass.dll v2.0
Quote:
function MusicOpenFile(handle: hwnd; title: widestring; defaultPath: widestring): widestring; external 'MusicOpenFile@files:xbass.dll stdcall';

procedure InitMusic(filename: widestring; RepeatOn: boolean); external 'InitMusic@files:xbass.dll stdcall';
procedure PlayMusic; external 'PlayMusic@files:xbass.dll stdcall';
procedure PauseMusic; external 'PauseMusic@files:xbass.dll stdcall';
procedure ResumeMusic; external 'ResumeMusic@files:xbass.dll stdcall';
procedure StopMusic; external 'StopMusic@files:xbass.dll stdcall';
procedure SetVolume(vol: integer); external 'SetVolume@files:xbass.dll stdcall';
function MusicPct: integer; external 'MusicPct@files:xbass.dll stdcall';
function MusicPosition: widestring; external 'MusicPosition@files:xbass.dll stdcall';
function MusicDuration: widestring; external 'MusicDuration@files:xbass.dll stdcall';
procedure DeInitMusic; external 'DeInitMusic@files:xbass.dll stdcall';

information:
Attached Images
File Type: png Screenshot 2021-01-20 192936.png (14.8 KB, 400 views)
Attached Files
File Type: zip xbass v2.0.0.0 + Example.zip (256.4 KB, 39 views)
__________________
- All life is an experiment. The more experiments you make the better. -

Last edited by Ele; 20-01-2021 at 06:26.
Reply With Quote
The Following 2 Users Say Thank You to Ele For This Useful Post:
Cesar82 (20-01-2021), ffmla (20-01-2021)