Fix CDXA on PS3

This commit is contained in:
2024-07-20 16:05:53 +02:00
parent 58c140335f
commit e27ccd9f63
8 changed files with 20 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ namespace JabyEngine {
CD::enable_CDXA(setting.double_speed); //< Activates PortIndex0
set_channel(setting.channel);
CD::Command::send_wait_response(CD_IO::Command::SetLoc, setting.last_loc.min, setting.last_loc.sec, setting.last_loc.sector);
CD::Command::send(CD_IO::Command::SetLoc, setting.last_loc.min, setting.last_loc.sec, setting.last_loc.sector);
CD::Command::send(CD_IO::Command::ReadS);
}
}

View File

@@ -8,7 +8,6 @@ namespace JabyEngine {
namespace CD {
namespace internal {
extern SysCall::InterruptCallback irq_callback;
extern void blubb();
}
}
@@ -39,7 +38,7 @@ namespace JabyEngine {
SysCall::ExitCriticalSection();
// TODO: Do we need this at all?!
__debug_boot_color_at(::JabyEngine::GPU::Color24::Red(), DebugX, DebugY, DebugScale);
/*__debug_boot_color_at(::JabyEngine::GPU::Color24::Red(), DebugX, DebugY, DebugScale);
CD_IO::PortIndex0::change_to();
__debug_boot_color_at(::JabyEngine::GPU::Color24::Green(), DebugX, DebugY, DebugScale);
@@ -47,9 +46,9 @@ namespace JabyEngine {
__debug_boot_color_at(::JabyEngine::GPU::Color24::Blue(), DebugX, DebugY, DebugScale);
Command::send(CD_IO::Command::GetStat);
__debug_boot_color_at(::JabyEngine::GPU::Color24::Yellow(), DebugX, DebugY, DebugScale);
Command::send(CD_IO::Command::Init);
Command::send(CD_IO::Command::Init);*/
Command::send(CD_IO::Command::Demute);
//Command::send(CD_IO::Command::Demute);
}
}
}

View File

@@ -22,10 +22,6 @@ namespace JabyEngine {
ExternalAudioInputVolume::Right.write({0});
}
static void clear_control_register() {
ControlRegister.write({0});
}
static void clear_voice() {
for(auto& voice : SPU_IO::Voice) {
voice.volumeLeft.write({0});
@@ -87,7 +83,6 @@ namespace JabyEngine {
clear_main_volume();
clear_cd_and_ext_audio_volume();
clear_control_register();
clear_voice();
clear_pmon();
clear_noise_and_echo();