From a21f91f7041ef969027577bb1cded73b3b7dbfd9 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 18 Jul 2024 19:05:59 +0200 Subject: [PATCH] beep,dac: add note about buffer size --- src/devices/sound/beep.cpp | 1 + src/devices/sound/dac.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/sound/beep.cpp b/src/devices/sound/beep.cpp index 5d76b30216a..fd4096c72eb 100644 --- a/src/devices/sound/beep.cpp +++ b/src/devices/sound/beep.cpp @@ -33,6 +33,7 @@ beep_device::beep_device(const machine_config &mconfig, const char *tag, device_ void beep_device::device_start() { + // large stream buffer to favour emu/sound.cpp resample quality m_stream = stream_alloc(0, 1, 48000 * 32); m_enable = false; diff --git a/src/devices/sound/dac.cpp b/src/devices/sound/dac.cpp index 57e3e49003d..c831ab24ac4 100644 --- a/src/devices/sound/dac.cpp +++ b/src/devices/sound/dac.cpp @@ -93,7 +93,7 @@ void dac_device_base::device_start() // determine the number of inputs int inputs = (m_specified_inputs_mask == 0) ? 0 : 2; - // create the stream + // large stream buffer to favour emu/sound.cpp resample quality m_stream = stream_alloc(inputs, 1, 48000 * 32); // save data