diff options
-rw-r--r-- | dc/audio.cpp | 8 | ||||
-rw-r--r-- | dc/dcmain.cpp | 2 |
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); |