Sound only plays once after scene change???

So my code is the basic soundtrack code

1
2
3
4
5
6
7
8
9
backgroundMusic = audio.loadStream("backgroundMusic.wav")
 
backgroundMusicChannel = audio.play( backgroundMusic, { channel=1, loops=-1 }  )
 
local function onPlayTap (event) --function created for when the "play" button is pressed and changes the scene
      if event.phase == "ended" then
            audio.stop( backgroundMusicChannel )
    end
end

What version of Corona are you using currently?

I actually got it working I just used audio.fade() to fade it in and out instead of actually stopping it :) Thanks for replying and I'm using Version 2011.704 (2011.12.8)

Glad you solved it, apologies - I thought it sounded like it may have to do with the old audio bug present before build 634 ;)

Peach :)

views:1441 update:2011/12/28 9:26:54
corona forums © 2003-2011