--- np2/sound/sound.h 2003/10/16 17:58:01 1.1 +++ np2/sound/sound.h 2003/10/20 06:36:33 1.2 @@ -5,19 +5,27 @@ 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 UINT32 opna_rate; -extern UINT32 dsound_lastclock; - +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);