Background Music doesnt loop?

Wonderful day!

In my app the background music isn’t looping, here is my code:

audio.reserveChannels(1) --soundtrack audio.reserveChannels(2) --click local soundtrack soundtrack = audio.loadStream( "soundtrack.ogg" ) local nextClick nextClick = audio.loadSound( "click.ogg" ) BGsoundSettings = { loop=10, channel=1 } arrowSoundSettings = { channel=2 } audio.setVolume( 0.75, {channel=1} ) --soundtrack audio.setVolume( 0.5, {channel=2} ) --click audio.play( soundtrack, BGsoundSettings )

The click sounds works, and the soundtrack (the background music) works also, but only ONE time.

I already tried “loop=-1”, “loop=2” so on, but ALWAYS after one time playing the music it stops.

Why?

thanks a lot!

‘loops’, not ‘loop’

https://docs.coronalabs.com/api/library/audio/play.html#parameter-reference

https://github.com/roaminggamer/RG_FreeStuff/blob/master/AskEd/2018/04/loopingSoundTrack.zip

‘loops’, not ‘loop’

https://docs.coronalabs.com/api/library/audio/play.html#parameter-reference

https://github.com/roaminggamer/RG_FreeStuff/blob/master/AskEd/2018/04/loopingSoundTrack.zip