|
|
| version 1.1, 2005/03/02 04:28:08 | version 1.2, 2005/03/09 17:12:34 |
|---|---|
| Line 11 typedef struct { | Line 11 typedef struct { |
| HMODULE mod; | HMODULE mod; |
| BOOL opened; | BOOL opened; |
| UINT rate; | UINT rate; |
| int (*Open)(int rate, int reverb, int def, int revtype, int revtime, int revlvl); | int (WINAPI * Open)(int rate, int reverb, int def, int revtype, int revtime, int revlvl); |
| int (*Close)(void); | int (WINAPI * Close)(void); |
| int (*Write)(unsigned char data); | int (WINAPI * Write)(unsigned char data); |
| int (*Mix)(void *buff, unsigned long size); | int (WINAPI * Mix)(void *buff, unsigned long size); |
| } MT32SOUND; | } MT32SOUND; |
| static MT32SOUND mt32sound; | static MT32SOUND mt32sound; |
| Line 117 void mt32sound_close(void) { | Line 117 void mt32sound_close(void) { |
| void mt32sound_shortmsg(UINT32 msg) { | void mt32sound_shortmsg(UINT32 msg) { |
| int (*Write)(unsigned char data); | int (WINAPI * Write)(unsigned char data); |
| Write = mt32sound.Write; | Write = mt32sound.Write; |
| switch((msg >> 4) & (0xf0 >> 4)) { | switch((msg >> 4) & (0xf0 >> 4)) { |
| Line 141 void mt32sound_shortmsg(UINT32 msg) { | Line 141 void mt32sound_shortmsg(UINT32 msg) { |
| void mt32sound_longmsg(const UINT8 *ptr, UINT32 leng) { | void mt32sound_longmsg(const UINT8 *ptr, UINT32 leng) { |
| int (*Write)(unsigned char data); | int (WINAPI * Write)(unsigned char data); |
| Write = mt32sound.Write; | Write = mt32sound.Write; |
| while(leng) { | while(leng) { |