Commit 6e51e083 authored by Giovanni Mascellani's avatar Giovanni Mascellani Committed by Alexandre Julliard

xactengine3_7: Forward wave bank notifications to the application.

parent 4be1dc1b
......@@ -172,6 +172,7 @@ static void WINAPI notification_cb(const XACT_NOTIFICATION *notification)
data->received = TRUE;
ok(notification->type == data->type,
"Unexpected notification type %u\n", notification->type);
todo_wine_if(notification->type == XACTNOTIFICATIONTYPE_WAVEBANKDESTROYED)
ok(notification->waveBank.pWaveBank == data->wave_bank, "Unexpected wave bank %p instead of %p\n",
notification->waveBank.pWaveBank, data->wave_bank);
ok(thread_id == data->thread_id, "Unexpected thread id %#lx instead of %#lx\n", thread_id, data->thread_id);
......@@ -248,11 +249,11 @@ static void test_notifications(void)
ok(hr == S_OK, "Cannot query wave bank state, hr %#lx\n", hr);
ok(state == XACT_WAVEBANKSTATE_PREPARED, "Wave bank is not in prepared state, but in %#lx\n", state);
todo_wine ok(prepared_data.received, "The 'wave bank prepared' notification was never received\n");
ok(prepared_data.received, "The 'wave bank prepared' notification was never received\n");
ok(!destroyed_data.received, "The 'wave bank destroyed' notification was received too early\n");
IXACT3WaveBank_Destroy(prepared_data.wave_bank);
todo_wine ok(destroyed_data.received, "The 'wave bank destroyed' notification was never received\n");
ok(destroyed_data.received, "The 'wave bank destroyed' notification was never received\n");
CloseHandle(file);
IXACT3Engine_Release(engine);
......
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