summaryrefslogtreecommitdiff
path: root/sound.h
diff options
context:
space:
mode:
authoraliaspider2014-12-10 11:06:17 +0100
committeraliaspider2014-12-10 11:06:17 +0100
commitad485d434adfa2f01e643e321b9e23c17df1edd0 (patch)
treed65155f033c3baca32e4a0a0e8b3de559f94f3db /sound.h
parent13d5e9c87586736b94097683e05bd1fd1e3b93ae (diff)
downloadpicogpsp-ad485d434adfa2f01e643e321b9e23c17df1edd0.tar.gz
picogpsp-ad485d434adfa2f01e643e321b9e23c17df1edd0.tar.bz2
picogpsp-ad485d434adfa2f01e643e321b9e23c17df1edd0.zip
implement retro_serialize/unserialize
Diffstat (limited to 'sound.h')
-rw-r--r--sound.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sound.h b/sound.h
index 72257e8..1f9090a 100644
--- a/sound.h
+++ b/sound.h
@@ -25,10 +25,7 @@
#define GBA_SOUND_FREQUENCY (64 * 1024)
-
-#define GBA_XTAL 16777216.0f
-
-#define GBC_BASE_RATE GBA_XTAL
+#define GBC_BASE_RATE ((float)(16 * 1024 * 1024))
typedef enum
{
@@ -120,8 +117,8 @@ void sound_timer(fixed8_24 frequency_step, u32 channel);
void sound_reset_fifo(u32 channel);
void update_gbc_sound(u32 cpu_ticks);
void init_sound(int need_reset);
-void sound_write_mem_savestate(file_tag_type savestate_file);
-void sound_read_savestate(file_tag_type savestate_file);
+void sound_write_savestate(void);
+void sound_read_savestate(void);
void render_audio(void);