Commit 4eb4077a authored by David Reid's avatar David Reid

Fix typo.

parent c340035f
...@@ -8493,7 +8493,7 @@ mal_result mal_device_init__sdl(mal_context* pContext, mal_device_type type, mal ...@@ -8493,7 +8493,7 @@ mal_result mal_device_init__sdl(mal_context* pContext, mal_device_type type, mal
mal_assert(pConfig != NULL); mal_assert(pConfig != NULL);
mal_assert(pDevice != NULL); mal_assert(pDevice != NULL);
// SDL wants the buffer size to be a power of 2. The SDL_AudioSpec for this properly is only a Uint16, so we need // SDL wants the buffer size to be a power of 2. The SDL_AudioSpec property for this is only a Uint16, so we need
// to explicitly clamp this because it will be easy to overflow. // to explicitly clamp this because it will be easy to overflow.
mal_uint32 bufferSize = pConfig->bufferSizeInFrames * pConfig->periods * pConfig->channels; mal_uint32 bufferSize = pConfig->bufferSizeInFrames * pConfig->periods * pConfig->channels;
if (bufferSize > 32768) { if (bufferSize > 32768) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment