--- np2/sound/rhythm.h 2003/12/08 00:55:33 1.2 +++ np2/sound/rhythm.h 2004/02/18 20:11:37 1.3 @@ -1,33 +1,11 @@ -enum { - RHYTHM_MAX = 6 -}; - -typedef struct { -const SINT16 *ptr; - UINT remain; - UINT volreg; - UINT volume; - UINT lr; -} RHYTHMCH; - typedef struct { - RHYTHMCH r[RHYTHM_MAX]; - UINT vol; - UINT bitmap; + PMIXHDR hdr; + PMIXTRK trk[6]; + UINT vol; + UINT8 trkvol[8]; } _RHYTHM, *RHYTHM; -typedef struct { - SINT16 *data; - UINT samples; -} RHYTHMPCM; - -typedef struct { - RHYTHMPCM pcm[RHYTHM_MAX]; - UINT vol; - UINT voltbl[96]; -} RHYTHMCFG; - #ifdef __cplusplus extern "C" { @@ -35,14 +13,14 @@ extern "C" { void rhythm_initialize(UINT rate); void rhythm_deinitialize(void); +UINT rhythm_getcaps(void); void rhythm_setvol(UINT vol); void rhythm_reset(RHYTHM rhy); +void rhythm_bind(RHYTHM rhy); void rhythm_update(RHYTHM rhy); void rhythm_setreg(RHYTHM rhy, REG8 reg, REG8 val); -void SOUNDCALL rhythm_getpcm(RHYTHM rhy, SINT32 *pcm, UINT count); - #ifdef __cplusplus } #endif