25 May '13 - 20:43 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: Play .xm from Resource (Delphi)  (Read 8314 times)
quakergod
Posts: 3


« on: 24 Aug '03 - 07:20 »
Reply with quoteQuote

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:
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 ? Embarrassed
Logged
quakergod
Posts: 3


« Reply #1 on: 24 Aug '03 - 13:14 »
Reply with quoteQuote

please... Cry
Logged
WingZero
Posts: 166


« Reply #2 on: 25 Aug '03 - 03:26 »
Reply with quoteQuote

Try reading this thread:
http://www.un4seen.com/YaBB.cgi?board=bass&action=display&num=1058000173
Logged
quakergod
Posts: 3


« Reply #3 on: 27 Aug '03 - 01:13 »
Reply with quoteQuote

i dont understand it, its not delphi and my english is not so good  Sad
Logged
WingZero
Posts: 166


« Reply #4 on: 27 Aug '03 - 20:02 »
Reply with quoteQuote

Well, I don't know Delphi, but hopefully someone who does can translate it for you.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines