mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
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:
+3
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user