Arrgghh! 5 hours to trawl half my code just to find that the problem was not mine! And probably not Blitz's either.
Microsoft, don't you just love 'em?
This code WILL play music:
[CODE]
mfile$="WAV\MUSIC\DEMO.mp3"
chnMusic = PlayMusic(mfile$)
[/CODE]
This code will NOY play music, and returns 0 for chnMusic:
[CODE]
mfile$="WAV\MUSIC\DEMO.MP3"
chnMusic = PlayMusic(mfile$)
[/CODE]
Notice the difference?
If .MP3 is upper case (doesn't matter about the rest) then PlayMusic fails. All my music defs were held in an external file so it was a sod to find.
And please don't talk to me about lower case as a standard -- the Greeks invented upper case 2000 years ago to make things more legible, and everyone agreed, until UNIX and MS decided otherwise and we all had to conform. Bah!
Microsoft, don't you just love 'em?
This code WILL play music:
[CODE]
mfile$="WAV\MUSIC\DEMO.mp3"
chnMusic = PlayMusic(mfile$)
[/CODE]
This code will NOY play music, and returns 0 for chnMusic:
[CODE]
mfile$="WAV\MUSIC\DEMO.MP3"
chnMusic = PlayMusic(mfile$)
[/CODE]
Notice the difference?
If .MP3 is upper case (doesn't matter about the rest) then PlayMusic fails. All my music defs were held in an external file so it was a sod to find.
And please don't talk to me about lower case as a standard -- the Greeks invented upper case 2000 years ago to make things more legible, and everyone agreed, until UNIX and MS decided otherwise and we all had to conform. Bah!