From a513b522ab5b28902568cb94eebbe9ff96cb0fd6 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 6 Apr 2026 12:03:00 +1000 Subject: [PATCH] Dreamcast: Increase lower bound period size from 1024 to 1536. Testing on real hardware is suggesting that 1024 is too small to be practical. --- miniaudio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index fdae2d40..c3770f1a 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -3822,7 +3822,7 @@ The following device configuration is recommended. Format: ma_format_u8 or ma_format_s16 Channels: 1 or 2 Sample Rate: 44100, 22050 or 11025 - Period Size: 1024 to 16384, multiple of 32. Recommended you keep it a power of two. + Period Size: 1536 to 16384, multiple of 32. Recommended you keep it a power of two. noFixedSizedCallback: True (This will tell miniaudio to bypass one of its internal buffers.) If you follow the above rules, miniaudio will skip it's data conversion pipeline and will pass @@ -48106,8 +48106,8 @@ static ma_result ma_device_init__dreamcast(ma_device* pDevice, const void* pDevi if (pDescriptorPlayback->periodSizeInFrames > 32767) { pDescriptorPlayback->periodSizeInFrames = 32767; } - if (pDescriptorPlayback->periodSizeInFrames < 1024) { - pDescriptorPlayback->periodSizeInFrames = 1024; + if (pDescriptorPlayback->periodSizeInFrames < 1536) { + pDescriptorPlayback->periodSizeInFrames = 1536; } bpf = ma_get_bytes_per_frame(pDescriptorPlayback->format, pDescriptorPlayback->channels);