direct_sound_struct direct_sound_channel[2];
gbc_sound_struct gbc_sound_channel[4];
-#if defined(GP2X_BUILD) || defined(TAVI_BUILD)
u32 sound_frequency = 44100;
-#else
-u32 sound_frequency = 44100;
-#endif
SDL_AudioSpec sound_settings;
SDL_mutex *sound_mutex;
address16(io_registers, 0x84) = sound_status;
- SDL_CondSignal(sound_cv);
-
- SDL_UnlockMutex(sound_mutex);
-
gbc_sound_last_cpu_ticks = cpu_ticks;
gbc_sound_buffer_index =
(gbc_sound_buffer_index + (buffer_ticks * 2)) % BUFFER_SIZE;
+
+ SDL_UnlockMutex(sound_mutex);
+
+ SDL_CondSignal(sound_cv);
}
#define sound_copy_normal() \