summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-02-12 14:45:02 +0100
committerRay <[email protected]>2020-02-12 14:45:02 +0100
commit1b20182d3307a7a08db7e9cf6a50246b960abc92 (patch)
tree67dba82dd4b490f44aa219cfabe975f72bd6b20a /src/raudio.c
parent7dfe42d6d06a22767555e15dfd12748b709a19a7 (diff)
downloadraylib-1b20182d3307a7a08db7e9cf6a50246b960abc92.tar.gz
raylib-1b20182d3307a7a08db7e9cf6a50246b960abc92.zip
Updated periodSize reference
Diffstat (limited to 'src/raudio.c')
-rw-r--r--src/raudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raudio.c b/src/raudio.c
index dafe05c1..79a7bdeb 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -410,7 +410,7 @@ void InitAudioDevice(void)
TRACELOG(LOG_INFO, "Audio format: %s -> %s", ma_get_format_name(AUDIO.System.device.playback.format), ma_get_format_name(AUDIO.System.device.playback.internalFormat));
TRACELOG(LOG_INFO, "Audio channels: %d -> %d", AUDIO.System.device.playback.channels, AUDIO.System.device.playback.internalChannels);
TRACELOG(LOG_INFO, "Audio sample rate: %d -> %d", AUDIO.System.device.sampleRate, AUDIO.System.device.playback.internalSampleRate);
- TRACELOG(LOG_INFO, "Audio buffer size: %d", AUDIO.System.device.playback.internalPeriodSizeInFrames);
+ TRACELOG(LOG_INFO, "Audio buffer size: %d", AUDIO.System.device.playback.internalPeriodSizeInFrames*AUDIO.System.device.playback.internalPeriods);
InitAudioBufferPool();
TRACELOG(LOG_INFO, "Audio multichannel pool size: %i", MAX_AUDIO_BUFFER_POOL_CHANNELS);
@@ -1406,7 +1406,7 @@ AudioStream InitAudioStream(unsigned int sampleRate, unsigned int sampleSize, un
ma_format formatIn = ((stream.sampleSize == 8)? ma_format_u8 : ((stream.sampleSize == 16)? ma_format_s16 : ma_format_f32));
// The size of a streaming buffer must be at least double the size of a period
- unsigned int periodSize = AUDIO.System.device.playback.internalPeriodSizeInFrames/AUDIO.System.device.playback.internalPeriods;
+ unsigned int periodSize = AUDIO.System.device.playback.internalPeriodSizeInFrames;
unsigned int subBufferSize = AUDIO_BUFFER_SIZE;
if (subBufferSize < periodSize) subBufferSize = periodSize;