gordonramp Posted December 10, 2009 Share Posted December 10, 2009 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? Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
macklebee Posted December 10, 2009 Share Posted December 10, 2009 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? Take a look at CreateSource. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
gordonramp Posted December 10, 2009 Author Share Posted December 10, 2009 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 Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
Recommended Posts
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.