Jump to content

Recommended Posts

Posted

Hi, I've found LoadSound() and PlaySound() and they work well but there doesn't seem to be a LoopSound() to enable a repeating piece of music. Any ideas on how to achieve this?:D

AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64.

Posted

Hi Mack, Yes, this will play the sound once..

 

Global sound:TSound = LoadSound("abstract::b_music2.ogg")

PlaySound(sound)

 

This will loop it..

 

Global sound:TSound = LoadSound("abstract::b_music2.ogg")

Global source:TSource = CreateSource(sound,SOURCE_LOOP)

PlaySource(source)

 

Ta :mellow:

AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...