|
-
Aug 21st, 2000, 09:43 AM
#1
Thread Starter
Fanatic Member
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 ?
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
[ Galahtech.com] | [ My Site] | [ Fishsponge] | [ UnixForum.co.uk]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|