Support SFX

This commit is contained in:
Jaby
2024-09-23 19:59:52 +02:00
committed by Jaby
parent d7d9dbfbbe
commit f0f4049b15
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};
}