mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Potential fix for a bug where the audio format is not init'd properly.
This commit is contained in:
@@ -20078,10 +20078,12 @@ mal_thread_result MAL_THREADCALL mal_worker_thread(void* pData)
|
|||||||
mal_device__set_state(pDevice, MAL_STATE_UNINITIALIZED);
|
mal_device__set_state(pDevice, MAL_STATE_UNINITIALIZED);
|
||||||
|
|
||||||
reinitResult = pDevice->pContext->onDeviceInit(pDevice->pContext, pDevice->type, NULL, &pDevice->initConfig, pDevice);
|
reinitResult = pDevice->pContext->onDeviceInit(pDevice->pContext, pDevice->type, NULL, &pDevice->initConfig, pDevice);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Perform the post initialization setup just in case the data conversion pipeline needs to be reinitialized.
|
||||||
if (reinitResult == MAL_SUCCESS) {
|
if (reinitResult == MAL_SUCCESS) {
|
||||||
mal_device__post_init_setup(pDevice);
|
mal_device__post_init_setup(pDevice);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// If reinitialization was successful, loop back to the start.
|
// If reinitialization was successful, loop back to the start.
|
||||||
if (reinitResult == MAL_SUCCESS) {
|
if (reinitResult == MAL_SUCCESS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user