Support SFX

This commit is contained in:
Jaby
2024-09-23 19:59:52 +02:00
parent 8b6921cba5
commit 6c94bca700
6 changed files with 44 additions and 24 deletions

View File

@@ -219,6 +219,10 @@ namespace JabyEngine {
static constexpr auto Step = BitRange::from_to(0, 1);
};
static constexpr SweepVolume create(SimpleVolume volume) {
return from(VolumeMode::Enable, VolumeMode::Volume.with(volume.raw >> 1));
}
static constexpr SweepVolume mute() {
return SweepVolume{0};
}