#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;
void WriteSound(int16 *Buffer, int Count)
{
gp2x_sound_write(Buffer, Count<<1);
- SpeedThrottle();
+// SpeedThrottle();
}
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;
}
return 1024;
}
+void StartSound(void)
+{
+ gp2x_start_sound(Settings.sound_rate, 16, 0);
+}
+
int KillSound(void)
{
- FCEUI_Sound(0);
+ //FCEUI_Sound(0);
return 1;
}