|
|
| version 1.1, 2003/12/24 16:11:40 | version 1.4, 2005/02/07 14:46:10 |
|---|---|
| Line 2 | Line 2 |
| #include "commng.h" | #include "commng.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| #include "sound.h" | #include "sound.h" |
| #include "cmjasts.h" | |
| #define JSEVENTS 512 | #define JSEVENTS 512 |
| Line 21 typedef struct { | Line 22 typedef struct { |
| } _CMJAST, *CMJAST; | } _CMJAST, *CMJAST; |
| static UINT jsread(COMMNG self, BYTE *data) { | static UINT jsread(COMMNG self, UINT8 *data) { |
| (void)self; | (void)self; |
| (void)data; | (void)data; |
| return(0); | return(0); |
| } | } |
| static UINT jswrite(COMMNG self, BYTE data) { | static UINT jswrite(COMMNG self, UINT8 data) { |
| CMJAST js; | CMJAST js; |
| SINT32 pcm; | SINT32 pcm; |
| Line 54 static UINT jswrite(COMMNG self, BYTE da | Line 55 static UINT jswrite(COMMNG self, BYTE da |
| return(1); | return(1); |
| } | } |
| static BYTE jsgetstat(COMMNG self) { | static UINT8 jsgetstat(COMMNG self) { |
| (void)self; | (void)self; |
| return(0); | return(0); |
| Line 110 static void SOUNDCALL js_getpcm(CMJAST h | Line 111 static void SOUNDCALL js_getpcm(CMJAST h |
| #else | #else |
| pcmdata = hdl->pcm; | pcmdata = hdl->pcm; |
| #endif | #endif |
| while(count) { | if (pcmdata) { |
| count--; | while(count) { |
| pcm[0] += pcmdata; | count--; |
| pcm[1] += pcmdata; | pcm[0] += pcmdata; |
| pcm += 2; | pcm[1] += pcmdata; |
| pcm += 2; | |
| } | |
| } | } |
| } | } |