enum {
BEEPEVENT_MAXBIT = 8,
BEEPEVENT_MAX = (1 << BEEPEVENT_MAXBIT)
};
typedef struct {
SINT32 clock;
int enable;
} BPEVENT;
typedef struct {
UINT16 cnt;
UINT16 hz;
int buz;
int puchi;
BYTE mode;
BYTE padding[3];
int low;
int enable;
int lastenable;
SINT32 clock;
UINT events;
BPEVENT event[BEEPEVENT_MAX];
} _BEEP, *BEEP;
typedef struct {
UINT rate;
UINT vol;
UINT puchibase;
} BEEPCFG;
#ifdef __cplusplus
extern "C" {
#endif
extern _BEEP beep;
void beep_initialize(UINT rate);
void beep_setvol(UINT vol);
void beep_reset(void);
void beep_hzset(UINT16 cnt);
void beep_modeset(void);
void beep_eventinit(void);
void beep_eventreset(void);
void beep_lheventset(int beep_low);
void beep_oneventset(void);
void SOUNDCALL beep_getpcm(BEEP bp, SINT32 *pcm, UINT count);
#ifdef __cplusplus
}
#endif
RetroPC.NET-CVS <cvs@retropc.net>