Dreamcast: Increase lower bound period size from 1024 to 1536.

Testing on real hardware is suggesting that 1024 is too small to be
practical.
This commit is contained in:
David Reid
2026-04-06 12:03:00 +10:00
parent b91098312d
commit a513b522ab
+3 -3
View File
@@ -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);