File:
[RetroPC.NET] /
np2 /
sound /
beep.h
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Mon Oct 20 21:08:01 2003 JST (22 years ago) by
yui
Branches:
MAIN
CVS tags:
VER_0_78,
VER_0_77,
VER_0_76,
VER_0_75,
VER_0_74,
VER_0_73,
VER_0_72,
VER_0_71,
VER_0_70,
HEAD
fix beep (T.Yui)
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;
UINT samplebase;
} BEEPCFG;
#ifdef __cplusplus
extern "C" {
#endif
extern _BEEP beep;
void beep_initialize(UINT rate);
void beep_setvol(UINT vol);
void beep_changeclock(void);
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>