sound = love.audio.newSource("pling.wav", "static") -- the "static" tells LÖVE to load the file into memory, good for short sound effects music = love.audio.newSource("techno.ogg") -- if "static" is omitted, LÖVE will stream the file from disk, good for longer music tracks sound:play() music:play()
推荐16位wav音乐格式,别的音乐格式有问题
时间: 2024-10-08 10:33:58