diff options
author | aliaspider | 2014-12-10 11:06:17 +0100 |
---|---|---|
committer | aliaspider | 2014-12-10 11:06:17 +0100 |
commit | ad485d434adfa2f01e643e321b9e23c17df1edd0 (patch) | |
tree | d65155f033c3baca32e4a0a0e8b3de559f94f3db /sound.c | |
parent | 13d5e9c87586736b94097683e05bd1fd1e3b93ae (diff) | |
download | picogpsp-ad485d434adfa2f01e643e321b9e23c17df1edd0.tar.gz picogpsp-ad485d434adfa2f01e643e321b9e23c17df1edd0.tar.bz2 picogpsp-ad485d434adfa2f01e643e321b9e23c17df1edd0.zip |
implement retro_serialize/unserialize
Diffstat (limited to 'sound.c')
-rw-r--r-- | sound.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -605,25 +605,25 @@ void init_sound(int need_reset) reset_sound(); } -#define sound_savestate_builder(type) \ -void sound_##type##_savestate(file_tag_type savestate_file) \ -{ \ - file_##type##_variable(savestate_file, sound_on); \ - file_##type##_variable(savestate_file, sound_buffer_base); \ - file_##type##_variable(savestate_file, sound_last_cpu_ticks); \ - file_##type##_variable(savestate_file, gbc_sound_buffer_index); \ - file_##type##_variable(savestate_file, gbc_sound_last_cpu_ticks); \ - file_##type##_variable(savestate_file, gbc_sound_partial_ticks); \ - file_##type##_variable(savestate_file, gbc_sound_master_volume_left); \ - file_##type##_variable(savestate_file, gbc_sound_master_volume_right); \ - file_##type##_variable(savestate_file, gbc_sound_master_volume); \ - file_##type##_array(savestate_file, wave_samples); \ - file_##type##_array(savestate_file, direct_sound_channel); \ - file_##type##_array(savestate_file, gbc_sound_channel); \ -} \ - -sound_savestate_builder(read); -sound_savestate_builder(write_mem); +#define sound_savestate_builder(type) \ +void sound_##type##_savestate(void) \ +{ \ + state_mem_##type##_variable(sound_on); \ + state_mem_##type##_variable(sound_buffer_base); \ + state_mem_##type##_variable(sound_last_cpu_ticks); \ + state_mem_##type##_variable(gbc_sound_buffer_index); \ + state_mem_##type##_variable(gbc_sound_last_cpu_ticks); \ + state_mem_##type##_variable(gbc_sound_partial_ticks); \ + state_mem_##type##_variable(gbc_sound_master_volume_left); \ + state_mem_##type##_variable(gbc_sound_master_volume_right); \ + state_mem_##type##_variable(gbc_sound_master_volume); \ + state_mem_##type##_array(wave_samples); \ + state_mem_##type##_array(direct_sound_channel); \ + state_mem_##type##_array(gbc_sound_channel); \ +} + +sound_savestate_builder(read) +sound_savestate_builder(write) #include "libretro.h" |