mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Minor tweaks to the Core Audio backend.
This commit is contained in:
@@ -15299,11 +15299,14 @@ mal_result mal_device_init_internal__coreaudio(mal_context* pContext, mal_device
|
|||||||
if (result != MAL_SUCCESS) {
|
if (result != MAL_SUCCESS) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
actualBufferSizeInFrames = 4096;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
pData->bufferSizeInFramesOut = actualBufferSizeInFrames * pData->periodsOut;
|
pData->bufferSizeInFramesOut = actualBufferSizeInFrames * pData->periodsOut;
|
||||||
|
#else
|
||||||
|
actualBufferSizeInFrames = 4096;
|
||||||
|
pData->bufferSizeInFramesOut = actualBufferSizeInFrames;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// During testing I discovered that the buffer size can be too big. You'll get an error like this:
|
// During testing I discovered that the buffer size can be too big. You'll get an error like this:
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user