<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi. My problem is as follows:<div><br></div><div>I have a couple of objects in my app. One object is an audio engine. That object has an object of type RtAudio and handles interaction with it.</div><div>The callback function for RtAudio is in some other object.</div><div><br></div><div>In my audio engine destructor, I call the corresponding functions to stop the stream before deleting the RtAudio object.&nbsp;</div><div>When RtAudio calls &nbsp;"void RtApiDs :: stopStream()" (I´m using Direct Sound here), the program executes up to:</div><div><br></div><div>&nbsp;WaitForSingleObject( handle-&gt;condition, INFINITE ); &nbsp;// block until signaled</div><div><br></div><div>And then stops there, apparently waiting for something to happen. Meanwhile, the callback function still get called and nothing else happens.</div><div><br></div><div>Any ideas what could be wrong?</div><div><br></div><div>I´m using Windows XP, VC2008, using Direct Sound with my Asus 1000HA internal sound system.</div><div><br></div><div>Best regards,</div><div><br></div><div>Carlos</div>                                               </div></body>
</html>