I'm creating a grid based game where when a character touches a door, a new map is drawn and the player is moved outside the door. I currently have music from http://soundimage.org/ (credits to Eric Matyas for the site) and im trying to play sounds.
The audio i have is loaded like this
function setAudio()
//music
menuMusic = LoadMusic ( "audio/Castle-of-Despair.mp3" )
playerMusic = LoadMusic ( "audio/Hazy-Darkness_Looping.mp3")
battleMusic = LoadMusic ( "audio/Hazy-Darkness_Looping.mp3")
//sounds
doorSound = LoadSound ( "audio/Walled-City-of-Doom_Looping.mp3")
endfunction
and is ran before any music is called. this works as i have the menuMusic playing at the start, when its looking for input. however, while the music is playing and i hit a door, the doorSound file doesnt play. I have checks for it all over the place just to make sure that its not only found, but playing. but the one line of code
Print("Instances of Sound Playing: " + Str(GetSoundsPlaying(doorSound)))
keeps printing 0. I've changed it from LoadSound to LoadMusic and the file works flawlessly, but i havent been able to find a way to make both the background ambient music and the door sound play at the same time.