I've been wanting to make an audio library for a long time.
Here's wave, an audio manager that lets you parse your source and even add rhythm-based mechanics in your game.
Code: Select all
local audio = require "wave" function love.load() music = audio :newSource("music.wav", "stream") :setBPM(120) :onBeat(function() print("Boom!") end) :play() end function love.update(dt) music:update(dt) end
This demo contains 4 examples using the library. Press space to switch between them.
The last example shows the beat detection feature used in wave. It's very experimental, so it might not work all the time.