Commit 8e976387 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

faudio: Purge and clear notifications on ShutDown.

Cherry-picked from upstream commit 16f86bffec36b6e82e5c93d5f04ebc4ee4f980ab. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54264
parent 448e68ab
...@@ -352,6 +352,16 @@ uint32_t FACTAudioEngine_ShutDown(FACTAudioEngine *pEngine) ...@@ -352,6 +352,16 @@ uint32_t FACTAudioEngine_ShutDown(FACTAudioEngine *pEngine)
FAudio_StopEngine(pEngine->audio); FAudio_StopEngine(pEngine->audio);
} }
/* Purge All pending notifactions */
while (pEngine->wb_notifications_list)
{
FACTNotification *note = (FACTNotification*) pEngine->wb_notifications_list->entry;
pEngine->notificationCallback(note);
LinkedList_RemoveEntry(&pEngine->wb_notifications_list, note, pEngine->apiLock, pEngine->pFree);
}
pEngine->notifications = 0;
/* This method destroys all existing cues, sound banks, and wave banks. /* This method destroys all existing cues, sound banks, and wave banks.
* It blocks until all cues are destroyed. * It blocks until all cues are destroyed.
*/ */
......
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