X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_int.h;h=df3a66126998744540a5b8f025732c4c47f23a2a;hb=0d83abe234136b0cbf3f2ae020760d9f57d84af6;hp=a7ea5e83ea11489c721209a7c505f3f599befcfc;hpb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;p=picodrive.git diff --git a/pico/pico_int.h b/pico/pico_int.h index a7ea5e8..df3a661 100644 --- a/pico/pico_int.h +++ b/pico/pico_int.h @@ -388,6 +388,17 @@ typedef struct { extern carthw_state_chunk *carthw_chunks; #define CHUNK_CARTHW 64 +// area.c +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); +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; + // Cart.c extern void (*PicoCartUnloadHook)(void); @@ -531,8 +542,8 @@ PICO_INTERNAL void PicoCDBufferRead(void *dest, int lba); // sound/sound.c PICO_INTERNAL void PsndReset(void); PICO_INTERNAL void PsndDoDAC(int line_to); -PICO_INTERNAL int PsndRender(int offset, int length); PICO_INTERNAL void PsndClear(void); +PICO_INTERNAL void PsndGetSamples(int y); // z80 functionality wrappers PICO_INTERNAL void z80_init(void); PICO_INTERNAL void z80_pack(unsigned char *data);