Auto repeat CDXA - Game freezes after a while

This commit is contained in:
Jaby
2024-05-29 20:33:18 +02:00
parent f6313a45ca
commit 836ad9b8aa
5 changed files with 198 additions and 129 deletions

View File

@@ -4,6 +4,17 @@
namespace JabyEngine {
namespace CD {
namespace internal {
enum struct State {
Ready = 0,
Done = 0,
XAMode,
Reading,
BufferFull,
Error,
};
extern State current_state;
extern uint8_t cmd_interrupt_bit;
@@ -43,7 +54,7 @@ namespace JabyEngine {
}
void read_file(AutoLBAEntry file_info, const SectorBufferAllocator& buffer_allocator);
void read_xa(uint32_t lba);
void read_xa(uint32_t lba, uint8_t channel);
void continue_reading();
CDTimeStamp get_lock();