#How to load in external audio files

1 messages · Page 1 of 1 (latest)

ashen juniper
#

audio_create_buffer_sound() mostly works well with raw PCM audio, such as wav

#

If you want something similar to MP3, use ogg and audio_create_stream()

dark prism
#

yeah im doing that rn as a plan b

#

but if i were doing buffer sound. With wavs, then still how could i get info of the sample rate and such

#

is that not possible?

ashen juniper
#

Oh no it's definitely possible

#

I've made two audio libraries that revolve around doing that

#

I have this oldie, but the latest one is the one I'll be updating going forward

dark prism
#

why not link the latest then 😛

ashen juniper
#

Because that one is the other audio library and I'm not done with it yet lol

#

Still got a lot of pieces to fill in

dark prism
#

fair nuff

ashen juniper
#

It's my sort of alternative to Vinyl

#

Except not as feature rich as Vinyl

dark prism
#

the project im doing is loading in a song to add rhythm segment stuff in a track editor. But since it's mainly a tool, it might be fine to just use ogg files

dark prism
ashen juniper
#

Not at the moment

dark prism
#

so maybe best to make it complimentary

#

instead of a replacement

#

im using vinyl rn

ashen juniper
#

Well, I would gladly do that, except that I've got no real way of hooking anything into Vinyl

#

So no lol

dark prism
#

right, i just mean you focus on loading external audio with the right formats

#

that's the hard part anyway

#

then i think you can just use the vinyl functions to play it since it's already in memory

#

i think at least

ashen juniper
#

Well

dark prism
#

also the project in question

ashen juniper
#

The thing is that I'd have to likely hook in extra bits and pieces alongside the VinylConfig

#

And afaik that isn't something that can be added/modified on the fly either (during runtime btw, not just from the IDE with "live reloading")

dark prism
ashen juniper
#

Hence why I've made Sonus. It doesn't have all of the QoL features that Vinyl has, but it does have a couple.
I'm slowly expanding it

ashen juniper
#

But my point is that until Juju adds in a way for patterns to be made on the fly, or adds in external audio support, there's just not going to be a way to do on the fly audio asset creation with Vinyl