Me and Morten made a library to play ogg and wav files from both url and local using html 5 audio.
here’s some doc
– loop points??
– finish filters (since we’re doing our own mixing we need to make our own type of filter)
– wave shaping
local stream = webaudio.Stream(URL)
– All Set should have a Get
stream:SetMaxLoopCount(num) – anything equal or below 0 will make it play forever
stream:SetPitch(num) – like pitch, normal is 1. you can even play it in reverse!
stream:SetPosition(frac) – helper for SetSamplePostition, 0 = start, 1 = end
stream:GetLength() – returns length in samples
NONE = 0,
LOWPASS = 1,
HIGHPASS = 2,
– echo (this is per stream)
– 3d stuff
stream:EnableDoppler(b) – this is also wip
you can find the code here:
More features may be added. May also recode it sometime in the future. We just kinda made it today and I’m now hoping to mass test it with PAC3.