首页 > 代码库 > love 音效

love 音效

sound = love.audio.newSource("pling.wav", "static") -- the "static" tells LÖVE to load the file into memory, good for short sound effectsmusic = love.audio.newSource("techno.ogg") -- if "static" is omitted, LÖVE will stream the file from disk, good for longer music trackssound:play()music:play()

 推荐16位wav音乐格式,别的音乐格式有问题

love 音效