Unable to restart music

Hello,

I have some code that used to work (Corona builds from last year sometime), but does not seem to work in the latest builds (3068).  The code is supposed to play music from the start every time.  In the latest builds, the music starts as usual the first time, but never again after that.

If anyone sees anything I am doing wrong, please let me know! 

 if ( audio.isChannelActive( \_G.MUSIC\_CHAN ) ) then audio.stop( \_G.MUSIC\_CHAN ) end if ( thisSongNum \> 0 ) then audio.rewind( sound.songs[thisSongNum] ) -- use the audio handle, channel doesn't work end dbg.out( "startNewGame: starting song " .. sound.songList[thisSongNum] .. ", volume=" .. gameData.prefs.musicVolume ) dbg.logEvent( "NewGame", { world=playerChar.world, song=sound.songList[thisSongNum] } ) -- volume is set in loadGame audio.play( sound.songs[thisSongNum], { channel = \_G.MUSIC\_CHAN, loops=-1 } )

I can see from the debug output that the song is the correct song every time and therefore thisSongNum is as expected.  Again, this used to work, but no longer does.  If there is a better way to do this, please let me know.

Best regards,

Tony

Bah!  Never mind, I found a call to set the volume that was muting it.

Bah!  Never mind, I found a call to set the volume that was muting it.