Re: Odd Behavior with DirectSound and Threading
From: Phil Taylor (phil_at_private-citizen.com)
Date: Wed, 29 Dec 2004 14:18:39 -0800
the C++ docs, are of course, the first source to consult. they are pretty
clear in that
If the application is multithreaded, the thread that plays the buffer must
continue to exist as long as the buffer is playing. Buffers created on WDM
drivers stop playing when the thread is terminated.
is the thread that starts the play being terminated before the play
"Kevin Spencer" <firstname.lastname@example.org> wrote in message
> Does anyone know anything about this? I'm adding sound to my Managed
> Direct3D Terrain Modeller, and I found that if I call
> on any SecondaryBuffer from a spawned thread, it has all kinds of
> problems -
> sound doesn't play, or it plays just a bit of it, etc. However, if I call
> from the main thread, it's fine.
> Thanks and Happy Holidays,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Neither a follower
> nor a lender be.