Hello all,
In my levelOne scene I am playing background music like this, I also have other sound effects loaded into a table as shown below.
The issue is that when my automaticFire fires it interrupts the background music snowyHill and snowyHill never plays the complete sound tract.
local snowyHill = audio.loadStream ( “Sounds/snowyHill.wav”)
audio.play (snowyHill)
local soundTable = {
shootWav = audio.loadSound (“Sounds/Cannon.wav”)
soundBlastWav = audio.loadSound(“Sounds/Blast.wav”)
}
function autoFire( event )
audio.play (soundTable [“shootWav”])
playerAlex:play()
snowBullett.x = playerAlex.x
snowBullett.y = playerAlex.contentHeight / 2
transition.from (snowBullett, {time = 1000, x = (playerAlex.x - 4), y = (h - 20),xScale = 6,yScale= 6})
snowBullett:rotate(4)
audio.rewind()
end
tmr = timer.performWithDelay(2000,autoFire,0)
Any Suggestions is appreciated.
Regards
JZ