Author Topic: Play .xm from Resource (Delphi)  (Read 16301 times)

quakergod

  • Posts: 3
Play .xm from Resource (Delphi)
« on: 24 Aug '03 - 07:20 »
Hi!
i have created a aqua.rc file with this content:
AquaSound  RCDATA   AQUA.xm
And i want to Play this File on FormCreate!
here is my Delphi Source:
Code: [Select]
procedure TForm1.FormCreate(Sender: TObject);
begin
   (* setup output - default device, 44100hz, stereo, 16 bits *)
 if  not BASSMOD_Init(-1,44100,0) then begin
   Error('Can''t initialize device');
   BASSMOD_Free
   end
else    if BASSMOD_MusicLoad(FALSE, PChar('H:\mods\Aqua.xm'), 0, 0, BASS_MUSIC_LOOP or BASS_MUSIC_RAMPS or BASS_MUSIC_SURROUND or BASS_MUSIC_POSRESET) <> 0 then begin
     BASSMOD_MusicPlay;
   end
 end;
 end.
And i want to use the Resource File instead of H:\mods\Aqua.xm.

Can someone please help me ? :-[

quakergod

  • Posts: 3
Re: Play .xm from Resource (Delphi)
« Reply #1 on: 24 Aug '03 - 13:14 »
please... :'(

WingZero

  • Posts: 167

quakergod

  • Posts: 3
Re: Play .xm from Resource (Delphi)
« Reply #3 on: 27 Aug '03 - 01:13 »
i dont understand it, its not delphi and my english is not so good  :(

WingZero

  • Posts: 167
Re: Play .xm from Resource (Delphi)
« Reply #4 on: 27 Aug '03 - 20:02 »
Well, I don't know Delphi, but hopefully someone who does can translate it for you.