PlayMusic Command not working

Blitz3D Forums/Blitz3D Programming/PlayMusic Command not working

FBEpyon(Posted 2004) [#1]
hello, im having a program with getting playmusic(filename$) to work

Is there a reason to why or has anyone had this problem before..?

muiscbg = playemusic(filename$) is what im doing..


gpete(Posted 2004) [#2]
well, apart from the spelling "playemusic....", instead
for background sound try this...use your own wav file of course!!! :

MusicBG=LoadSound("windy.wav")
LoopSound MusicBG
PlaySound MusicBG

This came up a few days ago in the beginners forum!


FBEpyon(Posted 2004) [#3]
ahh,

well I wanted to use a Mid and this was a question of seeing if anyone else was having the game problem :(


Mustang(Posted 2004) [#4]
.mid should be supported according to the docs:


PlayMusic (filename$)
Parameters:
filename$ - name of music file. Formats supported: raw/mod/s3m/xm/it/mid/rmi/wav/mp2/mp3/ogg/wma/asf



http://www.blitzbasic.com/b3ddocs/command.php?name=PlayMusic&ref=2d_cat


FBEpyon(Posted 2004) [#5]
Yeah I tried to use a xm file works fin but no midi will work.. its kinda weird..


Mustang(Posted 2004) [#6]
It might be your soundcard / drivers that don't work properly?


Danny(Posted 2004) [#7]
If you've got 3d music setup (createlistener, etc) - PlayMusic only plays the music around world center 0,0,0 - if I'm not mistaken. If it's not PlayMusic, it's one of the other ones :(

hope this helps,
D.


FBEpyon(Posted 2004) [#8]
yeah,

thanks guys got it to work, don't know how but it does now :P