GBARunner3/code/core/common/GbaSound.h

24 lines
427 B
C

#pragma once
typedef struct
{
u32 curPlaySampleCount;
u32 curPlaySamples;
} gbas_direct_channel7_t;
typedef struct
{
u32 fifo[8];
volatile u16 readOffset;
volatile u16 writeOffset;
volatile bool dmaRequest;
} gbas_direct_channel_t __attribute__((aligned(4)));
typedef struct
{
u8 soundCntX; // only enable flags
u8 masterEnable;
gbas_direct_channel_t directChannels[2];
} gbas_shared_t;