From 687121ff05209675199db119af9d3e96456cc12c Mon Sep 17 00:00:00 2001 From: feos Date: Sun, 30 Oct 2022 18:12:54 +0300 Subject: emu/sound.cpp: Don't force lower samplerate for dummy sound output module. (#10483) When using lua instead of OSD to obtain samples, we don't need sound output, but we need decent sample rate. --- src/emu/sound.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp index 1fb401f0ef1..6862845e8da 100644 --- a/src/emu/sound.cpp +++ b/src/emu/sound.cpp @@ -1093,14 +1093,6 @@ sound_manager::sound_manager(running_machine &machine) : m_wavfile(), m_first_reset(true) { - // get filename for WAV file or AVI file if specified - const char *wavfile = machine.options().wav_write(); - const char *avifile = machine.options().avi_write(); - - // handle -nosound and lower sample rate if not recording WAV or AVI - if (m_nosound_mode && wavfile[0] == 0 && avifile[0] == 0) - machine.m_sample_rate = 11025; - // count the mixers #if VERBOSE mixer_interface_enumerator iter(machine.root_device()); -- cgit v1.2.3