X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FPico.h;h=0d8bcf0c0d59150d7b42965961742bca6a499d82;hb=860c6322c346c8e2ec2a4626e79f26d8b0d23777;hp=ef2db109aae2ee675ac06945df9adb7abf38e181;hpb=4f265db77684ec33f9533e7c76734498df03bba4;p=picodrive.git diff --git a/Pico/Pico.h b/Pico/Pico.h index ef2db10..0d8bcf0 100644 --- a/Pico/Pico.h +++ b/Pico/Pico.h @@ -42,7 +42,7 @@ int PicoReset(int hard); int PicoFrame(void); extern int PicoPad[2]; // Joypads, format is MXYZ SACB RLDU extern int (*PicoCram)(int cram); // Callback to convert colour ram 0000bbb0 ggg0rrr0 -extern void (*PicoWriteSound)(void); // called once per frame at the best time to send sound buffer (PsndOut) to hardware +extern void (*PicoWriteSound)(int len); // called once per frame at the best time to send sound buffer (PsndOut) to hardware int PicoFrameMCD(void); @@ -50,12 +50,15 @@ int PicoFrameMCD(void); typedef size_t (arearw)(void *p, size_t _size, size_t _n, void *file); typedef size_t (areaeof)(void *file); typedef int (areaseek)(void *file, long offset, int whence); +typedef int (areaclose)(void *file); // Save or load the state from PmovFile: int PmovState(int PmovAction, void *PmovFile); // &1=for reading &2=for writing &4=volatile &8=non-volatile extern arearw *areaRead; // external read and write function pointers for extern arearw *areaWrite; // gzip save state ability extern areaeof *areaEof; extern areaseek *areaSeek; +extern areaclose *areaClose; +extern void (*PicoStateProgressCB)(const char *str); // Cart.c int PicoCartLoad(FILE *f,unsigned char **prom,unsigned int *psize); @@ -89,7 +92,7 @@ extern void (*PicoPrepareCram)(); // prepares PicoCramHigh for renderer to us extern int PsndRate,PsndLen; extern short *PsndOut; void sound_reset(); -void sound_rerate(); +void sound_rerate(int preserve_state); void z80_pack(unsigned char *data); void z80_unpack(unsigned char *data); void z80_reset();