Undo No changes

This commit is contained in:
Jaby 2024-06-01 21:52:38 +02:00
parent d36876b17c
commit cc92b848f9
4 changed files with 7 additions and 7 deletions

View File

@ -111,7 +111,7 @@ namespace Assets {
namespace XAAudio {
void play_fox() {
CDXA::play(lba, FOX_XA, 0, false);
CDXA::play(lba, FOX_XA, 1, true);
}
}
}

View File

@ -15,12 +15,12 @@ namespace JabyEngine {
Error,
};
extern State current_state;
extern volatile uint8_t cmd_interrupt_bit;
extern State current_state;
extern uint8_t cmd_interrupt_bit;
struct Command {
static void wait_completed() {
while(cmd_interrupt_bit > 0);
while(const_cast<volatile uint8_t&>(cmd_interrupt_bit) > 0);
}
template<typename...ARGS>

View File

@ -29,10 +29,10 @@ namespace JabyEngine {
struct RawXADataSector {
Header header;
SubHeader sub_header;
SubHeader copy_sub_header;
/*SubHeader copy_sub_header;
uint8_t data[0x800];
uint32_t edc;
uint8_t ecc[0x114];
uint8_t ecc[0x114];*/
};
class SectorBufferAllocator {

View File

@ -38,7 +38,7 @@ namespace JabyEngine {
static SectorBufferAllocator sector_allocator;
static File cur_file;
volatile uint8_t cmd_interrupt_bit = 0;
uint8_t cmd_interrupt_bit = 0;
State current_state = State::Ready;
SysCall::InterrupCallback callback = {
.next = nullptr,