mirror of
https://github.com/libretro/xmil-libretro.git
synced 2024-11-27 02:10:21 +00:00
3637bc6173
refs #99 svn merge -r 212:213 https://amethyst.yui.ne.jp/svn-dev/x1/xmil/branches/yui/WORK_02
44 lines
644 B
C
44 lines
644 B
C
/**
|
|
* @file advpsg.h
|
|
* @brief Interface of the PSG generator
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "sound/psggen.h"
|
|
|
|
typedef struct {
|
|
PSGREG reg;
|
|
UINT8 addr;
|
|
UINT8 envbmp;
|
|
UINT8 ch3bank;
|
|
UINT8 padding;
|
|
UINT8 vol[4];
|
|
UINT16 freq[4];
|
|
UINT32 lastclock;
|
|
UINT32 envcnt;
|
|
UINT32 envmax;
|
|
UINT8 __mixer; // unused
|
|
UINT8 envmode;
|
|
UINT8 envvol;
|
|
SINT8 envvolcnt;
|
|
} _ADVPSG, *ADVPSG;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern _ADVPSG advpsg;
|
|
|
|
void advpsg_reset(ADVPSG psg);
|
|
void advpsg_sync(ADVPSG psg);
|
|
|
|
void advpsg_setreg(ADVPSG psg, REG8 reg, REG8 dat);
|
|
REG8 advpsg_getreg(ADVPSG psg, REG8 reg);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|