Undo No changes

This commit is contained in:
jaby 2024-06-01 21:52:38 +02:00
parent c9cdfbba32
commit 85e06f07ce
4 changed files with 7 additions and 7 deletions

View File

@ -111,7 +111,7 @@ namespace Assets {
namespace XAAudio { namespace XAAudio {
void play_fox() { 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, Error,
}; };
extern State current_state; extern State current_state;
extern volatile uint8_t cmd_interrupt_bit; extern uint8_t cmd_interrupt_bit;
struct Command { struct Command {
static void wait_completed() { static void wait_completed() {
while(cmd_interrupt_bit > 0); while(const_cast<volatile uint8_t&>(cmd_interrupt_bit) > 0);
} }
template<typename...ARGS> template<typename...ARGS>

View File

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

View File

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