X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fcode940%2F940shared.h;h=5797260068e4c3642e33231b1661a543bb4f449e;hb=b08ccf71d5652983e5846fc5bdb61bc5b4660e64;hp=89531962d59691eb48c38227a57f2abfd5be6164;hpb=abe0ea43b561e2def84cf921b1d6d8c82819ea69;p=picodrive.git diff --git a/platform/gp2x/code940/940shared.h b/platform/gp2x/code940/940shared.h index 8953196..5797260 100644 --- a/platform/gp2x/code940/940shared.h +++ b/platform/gp2x/code940/940shared.h @@ -1,7 +1,7 @@ -#include "../../../Pico/sound/ym2612.h" -#include "../helix/pub/mp3dec.h" +#include "../../../pico/sound/ym2612.h" +#include "../../common/helix/pub/mp3dec.h" -// max 16 jobs +// max 16 jobs, lower num means higher prio enum _940_job_t { JOB940_INITALL = 1, JOB940_INVALIDATE_DCACHE, @@ -9,6 +9,10 @@ enum _940_job_t { JOB940_YM2612UPDATEONE, JOB940_MP3DECODE, JOB940_PICOSTATELOAD, + JOB940_PICOSTATESAVE2, + JOB940_PICOSTATELOAD2_PREP, + JOB940_PICOSTATELOAD2, + JOB940_MP3RESET, }; //#define MAX_940JOBS 2 @@ -35,6 +39,7 @@ typedef struct int writebuffsel; /* which write buffer to use (from 940 side) */ UINT16 writebuff0[2048]; /* list of writes to ym2612, 1024 for savestates, 1024 extra */ UINT16 writebuff1[2048]; + int ym_active_chs; int mp3_len; /* data len of loaded mp3 */ int mp3_offs; /* current playback offset (just after last decoded frame) */ int mp3_buffsel; /* which output buffer to decode to */