P
petra
Guest
I've been trying to use this piece of code in a "room start" event to play external .ogg files
snd =audio_create_stream("music/start.ogg");
audio_play_sound(snd,1,true)
my music file is here
Documents\GameMaker\Projects\<project name>.gmx\music
The room starts, and the music doesn't play. I've tried switching to a create event, and even to a game start event, but nothing.
I should also mention this is background music, and the code is in an object I place in the room
is there a different code I should be using, or am I not putting the file in the correct location?
snd =audio_create_stream("music/start.ogg");
audio_play_sound(snd,1,true)
my music file is here
Documents\GameMaker\Projects\<project name>.gmx\music
The room starts, and the music doesn't play. I've tried switching to a create event, and even to a game start event, but nothing.
I should also mention this is background music, and the code is in an object I place in the room
is there a different code I should be using, or am I not putting the file in the correct location?