[directmusic] Re: DirectMusic and multiple threads

  • From: "Todor Fay" <todor@xxxxxxxxxxxxx>
  • To: <directmusic@xxxxxxxxxxxxx>
  • Date: Wed, 9 Jun 2004 06:22:10 -0700

This almost sounds like a COM initialization issue. Are you calling
CoInitializeEx(NULL,COINIT_MULTITHREADED) at the start of your program?


-----Original Message-----
From: directmusic-bounce@xxxxxxxxxxxxx
[mailto:directmusic-bounce@xxxxxxxxxxxxx] On Behalf Of Vytautas
Sent: Thursday, June 10, 2004 5:50 AM
To: directmusic@xxxxxxxxxxxxx
Subject: [directmusic] DirectMusic and multiple threads

Hello Group,
I am having trouble with DirectMusic. Our app. uses 2 separate threads,
one for resource loading another for main flow. IDirectMusicSegment
objects, loaded on loader thread are not playing in main thread. No
errors are returned, just silence. 

If I try to play sound in loader thread (immidiately after load) sound's
playing well. Please help!


Other related posts: