Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.

DirectSoundRendere Problem (DEADLOCK)

detlef_stralaudynami
85 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
85 Views
yes, it looks like a error. Thanks for report. We will fix that in one of the future release.
Reply