X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fcode940%2F940shared.h;h=6f12a32f08527855923f6fdb6e11fd45bfb2410f;hb=b5f5dc1fad9a7876a2d146b1c61d06e64435a86e;hp=a55020b7f16458f1b195a853a906c1ce40560310;hpb=da42200b24749eee63cccf49d87781b861146e9f;p=picodrive.git diff --git a/platform/gp2x/code940/940shared.h b/platform/gp2x/code940/940shared.h index a55020b..6f12a32 100644 --- a/platform/gp2x/code940/940shared.h +++ b/platform/gp2x/code940/940shared.h @@ -1,7 +1,6 @@ -#include "../../../Pico/sound/ym2612.h" -#include "../../common/helix/pub/mp3dec.h" +#include "../../../pico/sound/ym2612.h" -// max 16 jobs +// max 16 jobs, lower num means higher prio enum _940_job_t { JOB940_INITALL = 1, JOB940_INVALIDATE_DCACHE, @@ -9,6 +8,10 @@ enum _940_job_t { JOB940_YM2612UPDATEONE, JOB940_MP3DECODE, JOB940_PICOSTATELOAD, + JOB940_PICOSTATESAVE2, + JOB940_PICOSTATELOAD2_PREP, + JOB940_PICOSTATELOAD2, + JOB940_MP3RESET, }; //#define MAX_940JOBS 2 @@ -16,7 +19,7 @@ enum _940_job_t { typedef struct { YM2612 ym2612; /* current state of the emulated YM2612 */ - HMP3Decoder mp3dec; /* mp3 decoder's handle */ + void *mp3dec; /* mp3 decoder's handle */ int ym_buffer[44100/50*2]; /* this is where the YM2612 samples will be mixed to */ short mp3_buffer[2][1152*2]; /* buffers for mp3 decoder's output */ } _940_data_t;