This one has me puzzled. Given this code:
print("loading music")
storyboard.backgroundMusic = audio.loadStream("audio/TP\_BkgrdMusic.wav") -- need background sound.
print("audio", storyboard.backgroundMusic)
audio.reserveChannels(1)
audio.setVolume(0.5, { channel = 1 })
if storyboard.settings.musicOn then
print("playing music")
audio.play(storyboard.backgroundMusic, { channel = 1, loops = -1 } )
end
Now all my other sounds, loaded by audio.loadSound() are playing as well as android sounds can (laggy). This code works perfectly on iOS.
I am seeing all of the print statements, including the “playing music”, but not a drop of sound. I have commented out the reserve channel, the set volume, the if musicOn statements. I’ve converted the sound to various formats, all of which play on the KF’s audio player.
The only weirdness is the print(“audio”, storyboard.backgroundMusic) prints audio, but storyboard.backgroundMusic is blank, not nil, not a table…
I’m puzzled.
any ideas? [import]uid: 19626 topic_id: 27212 reply_id: 327212[/import]