ゲームを開始した後、コンソールに次のメッセージが繰り返し表示されます。
sound_decode がエラーを引き起こしました
これをトリガーしているコードは次のとおりです。
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
local introsound = audio.loadStream("sounds/intro.mp3")
-- Called when the scene's view does not exist:
function scene:createScene( event )
local group = self.view
local background = display.newRect(0, 0, display.contentWidth, display.contentHeight)
background.strokeWidth = 3
background:setFillColor(170, 150, 170)
background:setStrokeColor(0, 0, 0)
local desliga = function (event)
if event.completed then
audio.stop()
audio.dispose(introsound)
introsound = nil
print ("disposing")
end
end
audio.play(introsound,{onComplete=desliga})
-- audio.play(introsound)
私は何か間違ったことをしていますか?それとも何かが欠けていますか?