aboutsummaryrefslogtreecommitdiff
path: root/dc
diff options
context:
space:
mode:
authorMarcus Comstedt2002-02-18 18:58:15 +0000
committerMarcus Comstedt2002-02-18 18:58:15 +0000
commit6c41198027f32148db50f5402fcb53e6ed4ae721 (patch)
treeeda340ea06068f9df23fb7567fa181586457f7f8 /dc
parent19c87ef6274ecc36812cde5d49df0debff302b4e (diff)
downloadscummvm-rg350-6c41198027f32148db50f5402fcb53e6ed4ae721.tar.gz
scummvm-rg350-6c41198027f32148db50f5402fcb53e6ed4ae721.tar.bz2
scummvm-rg350-6c41198027f32148db50f5402fcb53e6ed4ae721.zip
Sound update.
svn-id: r3605
Diffstat (limited to 'dc')
-rw-r--r--dc/audio.cpp8
-rw-r--r--dc/dcmain.cpp2
2 files changed, 10 insertions, 0 deletions
diff --git a/dc/audio.cpp b/dc/audio.cpp
index 533983ce3b..35dab8c5f6 100644
--- a/dc/audio.cpp
+++ b/dc/audio.cpp
@@ -27,6 +27,14 @@
#include <ronin/soundcommon.h>
EXTERN_C void *memcpy4(void *s1, const void *s2, unsigned int n);
+short temp_sound_buffer[RING_BUFFER_SAMPLES];
+
+void initSound()
+{
+ stop_sound();
+ do_sound_command(CMD_SET_FREQ(0));
+ do_sound_command(CMD_SET_BUFFER(0));
+}
void checkSound(Scumm *s)
{
diff --git a/dc/dcmain.cpp b/dc/dcmain.cpp
index 67e2c9d516..f6e367fc62 100644
--- a/dc/dcmain.cpp
+++ b/dc/dcmain.cpp
@@ -82,6 +82,8 @@ int main()
dc_setup_ta();
init_arm();
+ initSound();
+
if(!selectGame(&scumm, argv[1], icon))
exit(0);