X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2F940ctl.c;h=88477f8e4faf5b08d1c5fcc0c274b125a7c8ab83;hb=045a4c528a71e5513acc2cfb8a77e31efcad5d87;hp=afd653f5aab714388f4e798fd25bd05d34471dd1;hpb=7c34867ab6109c47ad099e903a57af6d2699074f;p=picodrive.git diff --git a/platform/gp2x/940ctl.c b/platform/gp2x/940ctl.c index afd653f..88477f8 100644 --- a/platform/gp2x/940ctl.c +++ b/platform/gp2x/940ctl.c @@ -1,5 +1,10 @@ -// Code for communication with ARM940 and control of it. -// (c) Copyright 2007, Grazvydas "notaz" Ignotas +/* + * Code for communication with ARM940 and control of it. + * (C) notaz, 2006-2009 + * + * This work is licensed under the terms of MAME license. + * See COPYING file in the top-level directory. + */ #include #include @@ -275,8 +280,6 @@ void sharedmem940_finish(void) } -extern char **g_argv; - void YM2612Init_940(int baseclock, int rate) { printf("YM2612Init_940()\n"); @@ -475,9 +478,10 @@ void mp3_update(int *buffer, int length, int stereo) } -void mp3_start_play(FILE *f, int pos) // pos is 0-1023 +void mp3_start_play(void *f_, int pos) // pos is 0-1023 { int byte_offs = 0; + FILE *f = f_; if (!(PicoOpt & POPT_EN_MCD_CDDA) || f == NULL) return;