Implement Audio
jjant opened this issue · 4 comments
Description
Amongst other things, we need to implement:
- Playing sounds at all: Look into different Rust audio libraries
- Sfx api:
sfx(n, [channel,] [offset,] [length])
- Music api:
music( n, [fadems,] [channelmask] )
- Sound Editor: Pitch Mode
- Sound Editor: Tracker Mode
- Music Editor: Mode 1
- Music Editor: Mode 2
I think that library looks like a good candidate
https://lib.rs/crates/cpal
Hi @Schr3da! Any help is appreciated.
I remember I had started doing some experimentation work here, in case it helps.
BTW any plans to move to webgpu?
I briefly considered it some time ago, but I didn't really see it being worth it (due to the added the complexity).
I wonder if another library like pixels would be better altogether.
What are your thoughts?
Thanks will have a look at your experimental work.
In regards to pixels - I think we could consider it last commit was just 2 month back.
Lets first do the sound and lets see afterwards :D
btw. I added steamdeck support will put it on a branch - as I needed to change the window size to 320x320 .