summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author feos <vadosnaprimer@users.noreply.github.com>2022-10-30 18:12:54 +0300
committer GitHub <noreply@github.com>2022-10-31 02:12:54 +1100
commit687121ff05209675199db119af9d3e96456cc12c (patch)
tree03459aa53dbafa17c3874d6d67fdb9c2f1d5a55f /src/emu
parent026f8c97d97fc7a29bd0e8a0aa518cd2d6987980 (diff)
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.
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/sound.cpp8
1 files changed, 0 insertions, 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());