CDXA not working

This commit is contained in:
2024-05-26 09:33:23 +02:00
parent 4f06d39e43
commit 43c534cf9b
10 changed files with 135 additions and 51 deletions

View File

@@ -45,7 +45,16 @@ namespace JabyEngine {
void read_file(AutoLBAEntry file_info, const SectorBufferAllocator& buffer_allocator);
void continue_reading();
void read_n(uint32_t lba);
void read_s(uint32_t lba);
void enable_CDDA();
void enable_CDXA(bool double_speed);
static void pause() {
CD_IO::PortIndex0::change_to();
Command::send<CD_IO::PortIndex0>(CD_IO::Command::Pause);
}
}
}
}

View File

@@ -8,8 +8,8 @@ namespace JabyEngine {
namespace CD {
namespace internal {
enum struct State {
Free = 0,
Done = 0,
Ready = 0,
Done = 0,
Reading,
BufferFull,