Commit 26e9eb62 authored by David Reid's avatar David Reid

Potential fix for a bug where the audio format is not init'd properly.

parent 7f61ec3c
...@@ -20078,9 +20078,11 @@ mal_thread_result MAL_THREADCALL mal_worker_thread(void* pData) ...@@ -20078,9 +20078,11 @@ 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);
if (reinitResult == MAL_SUCCESS) { }
mal_device__post_init_setup(pDevice);
} // Perform the post initialization setup just in case the data conversion pipeline needs to be reinitialized.
if (reinitResult == MAL_SUCCESS) {
mal_device__post_init_setup(pDevice);
} }
// If reinitialization was successful, loop back to the start. // If reinitialization was successful, loop back to the start.
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