aboutsummaryrefslogtreecommitdiff
path: root/backends/dc/audio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/dc/audio.cpp')
-rw-r--r--backends/dc/audio.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/dc/audio.cpp b/backends/dc/audio.cpp
index 526d8cbbef..23af162e9a 100644
--- a/backends/dc/audio.cpp
+++ b/backends/dc/audio.cpp
@@ -49,11 +49,20 @@ bool OSystem_Dreamcast::set_sound_proc(SoundProc *proc, void *param, SoundFormat
return true;
}
+void OSystem_Dreamcast::clear_sound_proc()
+{
+ _sound_proc = NULL;
+ _sound_proc_param = NULL;
+}
+
void OSystem_Dreamcast::checkSound()
{
int n;
int curr_ring_buffer_samples;
+ if(!_sound_proc)
+ return;
+
if(read_sound_int(&SOUNDSTATUS->mode) != MODE_PLAY)
start_sound();