It doesn't look like there is an event that you can subscribe to which
would tell you this. The only way I can think of doing this is poll the
GetCurrentPosition method to determine where in the buffer the item being
played is at.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Sin Jeong-hun" <ty*******@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
Microsoft.DirectX.DirectSound.SecondaryBuffer buff=new ...
...
buff.Play(0,data,BufferPlayFlags.Default);
The play method seems to be asynchronous. Then how can I know when it
finished playing the sound? I looked for some event, but there's
nothing but Disposed events.