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.
This commit is contained in:
feos 2022-10-30 18:12:54 +03:00 committed by GitHub
parent 026f8c97d9
commit 687121ff05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());