From 213c990eda36f7981434bbd15163cc8b8cbe4bfe Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 13 Jun 2021 12:08:32 +0200 Subject: [PATCH] Reviewed issue --- src/raudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raudio.c b/src/raudio.c index 1ff956a1..abc9579f 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1786,7 +1786,7 @@ AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, un unsigned int periodSize = AUDIO.System.device.playback.internalPeriodSizeInFrames; // If the buffer is not set, compute one that would give us a buffer good enough for a decent frame rate - unsigned int subBufferSize = (AUDIO.Buffer.defaultSize == 0)? AUDIO.Buffer.defaultSize : AUDIO.System.device.sampleRate/30; + unsigned int subBufferSize = (AUDIO.Buffer.defaultSize == 0)? AUDIO.System.device.sampleRate/30 : AUDIO.Buffer.defaultSize; if (subBufferSize < periodSize) subBufferSize = periodSize;