mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
mcpx: Move VP state struct to vp.h
This commit is contained in:
committed by
mborgerson
parent
ba6f7f360e
commit
068a623c54
+1
-26
@@ -95,32 +95,7 @@ typedef struct MCPXAPUState {
|
||||
} se;
|
||||
|
||||
/* Voice Processor */
|
||||
struct {
|
||||
MemoryRegion mmio;
|
||||
VoiceWorkDispatch voice_work_dispatch;
|
||||
MCPXAPUVoiceFilter filters[MCPX_HW_MAX_VOICES];
|
||||
QemuSpin out_buf_lock;
|
||||
Fifo8 out_buf;
|
||||
|
||||
// FIXME: Where are these stored?
|
||||
int ssl_base_page;
|
||||
MCPXAPUVPSSLData ssl[MCPX_HW_MAX_VOICES];
|
||||
uint8_t hrtf_headroom;
|
||||
uint8_t hrtf_submix[4];
|
||||
uint8_t submix_headroom[NUM_MIXBINS];
|
||||
float sample_buf[NUM_SAMPLES_PER_FRAME][2];
|
||||
uint64_t voice_locked[4];
|
||||
QemuSpin voice_spinlocks[MCPX_HW_MAX_VOICES];
|
||||
|
||||
struct {
|
||||
int current_entry;
|
||||
// FIXME: Stored in RAM
|
||||
struct {
|
||||
float hrir[2][HRTF_NUM_TAPS];
|
||||
float itd;
|
||||
} entries[HRTF_ENTRY_COUNT];
|
||||
} hrtf;
|
||||
} vp;
|
||||
MCPXAPUVPState vp;
|
||||
|
||||
/* Global Processor */
|
||||
struct {
|
||||
|
||||
@@ -75,6 +75,33 @@ typedef struct VoiceWorkDispatch {
|
||||
int queue_len;
|
||||
} VoiceWorkDispatch;
|
||||
|
||||
typedef struct {
|
||||
MemoryRegion mmio;
|
||||
VoiceWorkDispatch voice_work_dispatch;
|
||||
MCPXAPUVoiceFilter filters[MCPX_HW_MAX_VOICES];
|
||||
QemuSpin out_buf_lock;
|
||||
Fifo8 out_buf;
|
||||
|
||||
// FIXME: Where are these stored?
|
||||
int ssl_base_page;
|
||||
MCPXAPUVPSSLData ssl[MCPX_HW_MAX_VOICES];
|
||||
uint8_t hrtf_headroom;
|
||||
uint8_t hrtf_submix[4];
|
||||
uint8_t submix_headroom[NUM_MIXBINS];
|
||||
float sample_buf[NUM_SAMPLES_PER_FRAME][2];
|
||||
uint64_t voice_locked[4];
|
||||
QemuSpin voice_spinlocks[MCPX_HW_MAX_VOICES];
|
||||
|
||||
struct {
|
||||
int current_entry;
|
||||
// FIXME: Stored in RAM
|
||||
struct {
|
||||
float hrir[2][HRTF_NUM_TAPS];
|
||||
float itd;
|
||||
} entries[HRTF_ENTRY_COUNT];
|
||||
} hrtf;
|
||||
} MCPXAPUVPState;
|
||||
|
||||
extern const MemoryRegionOps vp_ops;
|
||||
|
||||
void mcpx_apu_vp_init(MCPXAPUState *d);
|
||||
|
||||
Reference in New Issue
Block a user