JOB940_NUMJOBS\r
};\r
\r
+#define MAX_940JOBS 2\r
\r
typedef struct\r
{\r
YM2612 ym2612; /* current state of the emulated YM2612 */\r
- int mix_buffer[44100/50*2]; /* this is where the YM2612 samples will be mixed to */\r
+ int mix_buffer[44100/50*2]; /* this is where the YM2612 samples will be mixed to */\r
+ short mp3_buffer[2][1152*2]; /* buffer for mp3 decoder's output */\r
} _940_data_t;\r
\r
\r
typedef struct\r
{\r
- int job; /* a job for second core */\r
+ int jobs[MAX_940JOBS]; /* jobs for second core */\r
int busy; /* busy status of the 940 core */\r
int length; /* number of samples to mix (882 max) */\r
int stereo; /* mix samples as stereo, doubles sample count automatically */\r
int baseclock; /* ym2612 settings */\r
int rate;\r
int writebuffsel; /* which write buffer to use (from 940 side) */\r
- UINT16 writebuff0[2048]; /* 1024 for savestates, 1024 extra */\r
+ UINT16 writebuff0[2048]; /* list of writes to ym2612, 1024 for savestates, 1024 extra */\r
UINT16 writebuff1[2048];\r
int vstarts[8]; /* debug: number of starts from each of 8 vectors */\r
int loopc; /* debug: main loop counter */\r