X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fgp2x%2Fgp2x-sound.c;h=20af608275be69cf690e2fdbcddd7b6147e82ff8;hb=b2b95d2e0d1fd5e52d03c2152605b09b024c1d0e;hp=30934bcc9e4fa4f81b4c1744d4f6d5b7e1cf63a2;hpb=e1591a12a775a600572ffccb2d6f8f4d6343b7dd;p=fceu.git diff --git a/drivers/gp2x/gp2x-sound.c b/drivers/gp2x/gp2x-sound.c index 30934bc..20af608 100644 --- a/drivers/gp2x/gp2x-sound.c +++ b/drivers/gp2x/gp2x-sound.c @@ -16,37 +16,22 @@ */ #include -#include -#include -#include -#include -#include -#include +#include "../../driver.h" #include "gp2x.h" #include "minimal.h" #include "throttle.h" extern int soundvol; -extern unsigned long gp2x_dev[8]; -// always have this call -INLINE void gp2x_sound_frame(void *blah, void *buff, int samples) -{ -} void WriteSound(int16 *Buffer, int Count) { - write(gp2x_dev[3], Buffer, Count<<1); + gp2x_sound_write(Buffer, Count<<1); SpeedThrottle(); } -void* gp2x_write_sound(void* blah) -{ - return NULL; -} - void SilenceSound(int n) { soundvol=0;