File:  [RetroPC.NET] / np2 / sound / sound.h
Revision 1.3: download - view: text, annotated - select for diffs
Fri Jan 9 01:29:56 2004 JST (21 years, 9 months ago) by yui
Branches: MAIN
CVS tags: VER_0_74, VER_0_73, HEAD
add wavemixer (T.Yui)


#ifndef SOUNDCALL
#define	SOUNDCALL
#endif

#if defined(SUPPORT_WAVEMIX)
#include	"wavemix.h"
#endif

typedef void (SOUNDCALL * SOUNDCB)(void *hdl, SINT32 *pcm, UINT count);

typedef struct {
	UINT	rate;
	UINT32	hzbase;
	UINT32	clockbase;
	UINT32	minclock;
	UINT32	lastclock;
	UINT	writecount;
} SOUNDCFG;


#ifdef __cplusplus
extern "C" {
#endif

extern	SOUNDCFG	soundcfg;

BOOL sound_create(UINT rate, UINT ms);
void sound_destroy(void);

void sound_reset(void);
void sound_changeclock(void);
void sound_streamregist(void *hdl, SOUNDCB cbfn);

void sound_sync(void);

const SINT32 *sound_pcmlock(void);
void sound_pcmunlock(const SINT32 *hdl);

#ifdef __cplusplus
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>