Undo No changes
This commit is contained in:
parent
c9cdfbba32
commit
85e06f07ce
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -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>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue