Load/Play Music

Blitz3D Forums/Blitz3D Beginners Area/Load/Play Music

Hey guys, basic question I guess :/

I got this command

Emotioanl1Music = Load3DSound("Music/Emotional1.mp3")

but the msic doesnt play in the game, any reasons why this is?

Also what sound files does it allow

This is the only command I am using.

Thank You.

Emotioanl1Music = Load3DSound("Music/Emotional1.mp3")

but the msic doesnt play in the game, any reasons why this is?

Also what sound files does it allow

This is the only command I am using.
You'll hear nothing until you use:
channel = PlaySound(Emotioanl1Music)

Not sure if PlaySound works with 3D sounds, but if not you can also use EmitSound, but read up on CreateListener() before doing so.

You can use WAV, OGG or MP3 format.

Ah I see, thats cool,

Only Im gettin a 'Sound Does Not Exist' error for every music I try to load :/

Changing the directory makes no difference. .. ..

Resolved

-------------------
Download Latest Update, Stupid Buggy :/

Just so that you're aware (if you weren't already) - loading an MP3 (or WAV/OGG for that matter) song into memory with LoadSound/Load3DSound is not advisable, as they are loaded and decompressed at load-time, therefore a 4mb MP3 will take up about 40mb of RAM.

Its better to use PlayMusic() instead, wherever possible.