Reviewed issue
This commit is contained in:
parent
de7b8ad551
commit
213c990eda
1 changed files with 1 additions and 1 deletions
|
@ -1786,7 +1786,7 @@ AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, un
|
||||||
unsigned int periodSize = AUDIO.System.device.playback.internalPeriodSizeInFrames;
|
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
|
// 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;
|
if (subBufferSize < periodSize) subBufferSize = periodSize;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue