flycast/core/hw/aica/sgc_if.h

60 lines
741 B
C
Raw Normal View History

2013-12-19 17:10:14 +00:00
#pragma once
2020-03-28 16:58:01 +00:00
#include "types.h"
2013-12-19 17:10:14 +00:00
void AICA_Sample();
void AICA_Sample32();
void WriteChannelReg(u32 channel, u32 reg, int size);
2013-12-19 17:10:14 +00:00
void sgc_Init();
void sgc_Term();
union fp_22_10
{
struct
{
u32 fp:10;
u32 ip:22;
};
u32 full;
};
union fp_s_22_10
{
struct
{
u32 fp:10;
s32 ip:22;
};
s32 full;
};
union fp_20_12
{
struct
{
u32 fp:12;
u32 ip:20;
};
u32 full;
};
2018-09-02 13:49:23 +00:00
struct DSP_OUT_VOL_REG
{
//-- EFSDL[3:0] -- EFPAN[4:0]
u32 EFPAN:5;
u32 res_1:3;
u32 EFSDL:4;
u32 res_2:4;
u32 pad:16;
};
2013-12-19 17:10:14 +00:00
typedef s32 SampleType;
void ReadCommonReg(u32 reg,bool byte);
void WriteCommonReg8(u32 reg,u32 data);
void channel_serialize(Serializer& ctx);
void channel_deserialize(Deserializer& ctx);
2021-10-10 14:33:37 +00:00
void vmuBeep(int on, int period);