Closed RockasMockas closed 2 months ago
One question - is there a reason we prefer to have this in src/renderer/audo.rs
instead of src/audio.rs
? Maybe want to move into own module?
One question - is there a reason we prefer to have this in
src/renderer/audo.rs
instead ofsrc/audio.rs
? Maybe want to move into own module?
The main reason I did it there was because the previous audio code was there and didn't think about it. So yeah we can move it.
One question - is there a reason we prefer to have this in src/renderer/audo.rs instead of src/audio.rs? Maybe want to move into own module?
Oh, yeah, forgot to reply to that. That was from an my original attempts to put all the components that were meant for producing a side-effect outside of the Bones world in renderer
. That got unintuitive, though, when you think about "rendering" audio or "rendering" controller rumble.
I'm not sure if it's still a good idea to have some module for it, but right now it's just more confusing so we can pull it out of renderer
.
Moved AudioCenter out of jumpy -> bones.
Reworked to remove the dependency on using a game's settings struct directly + streamlining the interfaces such as having both play_sound and play_music be super easy to use, with extra _advanced and _custom methods for different levels of advanced features/usability on music.
Tested both music/sounds work.