开始游戏后,我在控制台上循环收到此消息:
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)
难道我做错了什么?还是缺少什么?