-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
So thanks in advance for writing this: I've thought about doing something like this myself for a while and I just happened upon this repo maybe yesterday~
I'd like to use it in the love2d engine, which we've already got an integration for (nice), but because it directly uses portaudio I'd have to run two audio engines in my game: one for 3d sound fx, and one just for music. love has introduced a new API for providing a streaming source of audio I'd like to use instead. Here's what an integration with that might look like:
-- a source is analogous to a sample, you can play/pause/apply effects to it
local source = love.audio.newQueueableSource(...)
-- this is just a chunk of memory
local data = love.audio.newSoundData(...)
function love.update(dt) -- game update, runs at 60fps
if shouldUpdateAudio then
-- this would do the work of update()
modipulate.fill_buffer(data, len, samplerate, etc...)
source:queue(data)
source:play()
end
endIs modipulate in a good place for this kind of change? If I wanted to do it myself where should I start?
Metadata
Metadata
Assignees
Labels
No labels