Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

DirectSoundRendere Problem (DEADLOCK)

detlef_stralaudynami
214 Views
Hi @ all

i think i found a deadlock problem in the directsound - renderer. I will explain it:
When the directsound rederer is initialized and no sound data available before and you call Close() it will hang.

So i changed it and close the hande before the rest will do it's work now it will work (line 284):


UMC::Status UMC::DSoundAudioRender::Close()
{
if (NULL != m_hTimer) {
CloseHandle(m_hTimer);
m_hTimer = NULL;
}
BasicAudioRender::Close();
m_DSBuffer.Close();
m_AudioPtsArray.Reset();
m_dwSampleAlign = 0;
return UMC_OK;
}

Best Regards

Detlef
0 Kudos
1 Reply
Gennady_F_Intel
Moderator
214 Views
yes, it looks like a error. Thanks for report. We will fix that in one of the future release.
0 Kudos
Reply