release r2, update credits
[fceu.git] / drivers / gp2x / gp2x-sound.c
index cb5e0d9..b4a38e0 100644 (file)
@@ -18,9 +18,9 @@
 #include <stdio.h>
 
 #include "../../driver.h"
-#include "gp2x.h"
+#include "../common/settings.h"
+#include "../common/throttle.h"
 #include "minimal.h"
-#include "throttle.h"
 
 
 extern int soundvol;
@@ -29,7 +29,7 @@ extern int soundvol;
 void WriteSound(int16 *Buffer, int Count)
 {
        gp2x_sound_write(Buffer, Count<<1);
-       SpeedThrottle();
+//     SpeedThrottle();
 }
 
 void SilenceSound(int n)
@@ -54,9 +54,14 @@ uint32 GetWriteSound(void)
        return 1024;
 }
 
+void StartSound(void)
+{
+        gp2x_start_sound(Settings.sound_rate, 16, 0);
+}
+
 int KillSound(void)
 {
-       FCEUI_Sound(0);
+       //FCEUI_Sound(0);
 
        return 1;
 }