|
|
| version 1.1, 2003/10/16 17:58:05 | version 1.4, 2005/05/13 05:47:25 |
|---|---|
| Line 1 | Line 1 |
| enum { | |
| RHYTHM_MAX = 6 | |
| }; | |
| typedef struct { | |
| const SINT16 *ptr; | |
| UINT remain; | |
| UINT volreg; | |
| UINT volume; | |
| UINT lr; | |
| } RHYTHMCH; | |
| typedef struct { | typedef struct { |
| RHYTHMCH r[RHYTHM_MAX]; | PMIXHDR hdr; |
| UINT vol; | PMIXTRK trk[6]; |
| UINT bitmap; | UINT vol; |
| UINT8 trkvol[8]; | |
| } _RHYTHM, *RHYTHM; | } _RHYTHM, *RHYTHM; |
| typedef struct { | |
| SINT16 *data; | |
| UINT samples; | |
| } RHYTHMPCM; | |
| typedef struct { | |
| RHYTHMPCM pcm[RHYTHM_MAX]; | |
| UINT vol; | |
| UINT voltbl[96]; | |
| } RHYTHMCFG; | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| Line 35 extern "C" { | Line 13 extern "C" { |
| void rhythm_initialize(UINT rate); | void rhythm_initialize(UINT rate); |
| void rhythm_deinitialize(void); | void rhythm_deinitialize(void); |
| UINT rhythm_getcaps(void); | |
| void rhythm_setvol(UINT vol); | void rhythm_setvol(UINT vol); |
| void rhythm_reset(RHYTHM rhy); | void rhythm_reset(RHYTHM rhy); |
| void rhythm_bind(RHYTHM rhy); | |
| void rhythm_update(RHYTHM rhy); | void rhythm_update(RHYTHM rhy); |
| void rhythm_setreg(RHYTHM rhy, BYTE reg, BYTE val); | void rhythm_setreg(RHYTHM rhy, UINT reg, REG8 val); |
| void SOUNDCALL rhythm_getpcm(RHYTHM rhy, SINT32 *pcm, UINT count); | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |