hi one of my frioends is having problems with his program and i was wondering whether nyone can help him, here is the problem

I am a secondary school teacher. I have written a program using
DirectSound to play sound data in the sound buffer. However, when the
window which hosts the program becomes non-active (e.g. changing from one
window to the next), the program stops playing the sound. When the focus
of the playing window is re-gained, DirectSound continues the sound
playing from the buffer again. What I require is to keep the sound
playing regardless the window is activated or not. How can I achieve
playing DirectSound in the background?

I have tried using different methods, including SetFocus, SetForground
Window, different priority level setting (exclusive, normal, priority,
writeprimary). All do not work. The focus of the hosting window cannot
be re-gained automatically after loosing focus. The window focus can only
be re-gained by clicking the hosting window again manually.


I use Visual Basic 6.0 and my computer operation system is under Windows
2000 Professional.

Cheers

Merlin ?