X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=linux%2F940ctl_ym2612.c;h=b59e7771b84729f5b914449663eb1aa22e4c7ea0;hb=82abf46f3db8ade517881c03327bdbc0de848eb2;hp=ee63458df0be995bdf3648f5f8920214f738bc17;hpb=5ecedd0cc2257b564dfcf68cb0e9d7d541bfc2b8;p=libpicofe.git diff --git a/linux/940ctl_ym2612.c b/linux/940ctl_ym2612.c index ee63458..b59e777 100644 --- a/linux/940ctl_ym2612.c +++ b/linux/940ctl_ym2612.c @@ -8,19 +8,14 @@ #include #include -#include "../../Pico/sound/ym2612.h" +#include "../../pico/sound/ym2612.h" #include "../gp2x/gp2x.h" #include "../gp2x/emu.h" -#include "../gp2x/menu.h" #include "../gp2x/code940/940shared.h" #include "../common/helix/pub/mp3dec.h" -#include "../../Pico/PicoInt.h" +#include "../../pico/pico_int.h" -static YM2612 ym2612; - -YM2612 *ym2612_940 = &ym2612; - // static _940_data_t shared_data_; static _940_ctl_t shared_ctl_; // static _940_data_t *shared_data = &shared_data_; @@ -33,7 +28,7 @@ unsigned char *mp3_mem = 0; /***********************************************************/ -int YM2612Write_940(unsigned int a, unsigned int v) +int YM2612Write_940(unsigned int a, unsigned int v, int scanline) { YM2612Write_(a, v); @@ -57,6 +52,16 @@ void YM2612PicoStateLoad_940(void) } } +void YM2612PicoStateSave2_940(int tat, int tbt) +{ + YM2612PicoStateSave2(tat, tbt); +} + +int YM2612PicoStateLoad2_940(int *tat, int *tbt) +{ + return YM2612PicoStateLoad2(tat, tbt); +} + void sharedmem_init(void) { @@ -205,9 +210,3 @@ void mp3_start_play(FILE *f, int pos) // pos is 0-1023 } -int mp3_get_offset(void) -{ - return 0; -} - -