use picofe menu, move generic code out of gp2x/
[fceu.git] / drivers / gp2x / gp2x-sound.c
index 666aee1..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;
@@ -54,6 +54,11 @@ uint32 GetWriteSound(void)
        return 1024;
 }
 
+void StartSound(void)
+{
+        gp2x_start_sound(Settings.sound_rate, 16, 0);
+}
+
 int KillSound(void)
 {
        //FCEUI_Sound(0);