perfect vsync, bugfixes
[fceu.git] / drivers / gp2x / gp2x-sound.c
index 20af608..666aee1 100644 (file)
@@ -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)
@@ -37,12 +37,10 @@ void SilenceSound(int n)
        soundvol=0;
 }
 
-int InitSound(FCEUGI *gi)
+int InitSound(void)
 {
-       Settings.sound=22050;
-       FCEUI_Sound(Settings.sound);
+       FCEUI_Sound(Settings.sound_rate);
        gp2x_sound_volume(soundvol, soundvol);
-       printf("InitSound() sound_rate: %d\n", Settings.sound);
        return 1;
 }
 
@@ -58,7 +56,7 @@ uint32 GetWriteSound(void)
 
 int KillSound(void)
 {
-       FCEUI_Sound(0);
+       //FCEUI_Sound(0);
 
        return 1;
 }