Support Volume Steps now for easier support of fractions

This commit is contained in:
Jaby
2022-08-31 17:17:17 +02:00
parent fde4ae9c71
commit c63bdb8e3a
2 changed files with 18 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ namespace JabyEngine {
}
static void setup() {
static constexpr auto StartVol = ::SPU::SweepVolume().set_volume_mode().set_volume(::SPU::SweepVolume::VolumeLevelPercent(50.0));
static constexpr auto StartVol = ::SPU::SweepVolume().set_volume_mode().set_volume_percent(50.0);
io_class__volatile_assign(::SPU::MainVolume::Left, StartVol);
io_class__volatile_assign(::SPU::MainVolume::Right, StartVol);