Add new IOPort design
This commit is contained in:
@@ -10,8 +10,8 @@ namespace JabyEngine {
|
||||
static void clear_main_volume() {
|
||||
static constexpr auto StartVol = SPU_IO::SweepVolume::with(SPU_IO::SweepVolume::VolumeEnable, SPU_IO::SweepVolume::Volume.with(I16_MAX >> 2));
|
||||
|
||||
SPU_IO::MainVolume::Left.write(StartVol);
|
||||
SPU_IO::MainVolume::Right.write(StartVol);
|
||||
SPU_IO::MainVolume::Left.write({StartVol});
|
||||
SPU_IO::MainVolume::Right.write({StartVol});
|
||||
}
|
||||
|
||||
static void clear_cd_and_ext_audio_volume() {
|
||||
@@ -58,7 +58,7 @@ namespace JabyEngine {
|
||||
static void setup_control_register() {
|
||||
static constexpr auto SetupValue = SPU_IO::ControlRegister::with(SPU_IO::ControlRegister::Enable, SPU_IO::ControlRegister::Unmute, SPU_IO::ControlRegister::CDAudioEnable);
|
||||
|
||||
SPU_IO::Control.write(SetupValue);
|
||||
SPU_IO::Control.write({SetupValue});
|
||||
}
|
||||
|
||||
static void setup_data_transfer_control() {
|
||||
@@ -79,7 +79,7 @@ namespace JabyEngine {
|
||||
}
|
||||
|
||||
void stop_voices() {
|
||||
SPU_IO::Key::Off.write(UI32_MAX);
|
||||
SPU_IO::Key::Off.write({UI32_MAX});
|
||||
}
|
||||
|
||||
void setup() {
|
||||
|
||||
Reference in New Issue
Block a user