package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
1.1 KiB

diff --git a/src/backend/miniaudio/soloud_miniaudio.cpp b/src/backend/miniaudio/soloud_miniaudio.cpp
index 7dba676..e34b910 100644
--- a/src/backend/miniaudio/soloud_miniaudio.cpp
+++ b/src/backend/miniaudio/soloud_miniaudio.cpp
@@ -61,7 +61,7 @@ namespace SoLoud
result miniaudio_init(SoLoud::Soloud *aSoloud, unsigned int aFlags, unsigned int aSamplerate, unsigned int aBuffer, unsigned int aChannels)
{
ma_device_config config = ma_device_config_init(ma_device_type_playback);
- config.bufferSizeInFrames = 128;
+ config.periodSizeInFrames = 128;
config.playback.format = ma_format_f32;
config.playback.channels = aChannels;
config.sampleRate = aSamplerate;
@@ -73,7 +73,7 @@ namespace SoLoud
return UNKNOWN_ERROR;
}
- aSoloud->postinit_internal(gDevice.sampleRate, gDevice.playback.internalBufferSizeInFrames, aFlags, gDevice.playback.channels);
+ aSoloud->postinit_internal(gDevice.sampleRate, gDevice.playback.internalPeriodSizeInFrames, aFlags, gDevice.playback.channels);
aSoloud->mBackendCleanupFunc = soloud_miniaudio_deinit;