Playing two sounds at the same time.

Started by
3 comments, last by DanTheRocker 22 years, 7 months ago
Im using DirectX 8.0 and want to be able to play more than one sound at the same time. I''ve run into a problem when trying to do this because when i call a function that plays a sound, and call it again, the first sound stops and the second one takes over. How do I overcome this?
-Dan
Advertisement
Set the dwFlags argument of your call to PlaySegment to
DMUS_SEGF_SECONDARY . Does that help? Or are you using Direct Sound?

-Forcas

"Elvis is alive. He is Barney the purple dinosaur. He is the pied piper that leads our children into the wages of sin and eternal damnation."



-Forcaswriteln("Does this actually work?");
Yes, i am using direct music, ill try that when i get home. Thanks.
-Dan
BINGO. Thanks a million.
-Dan
Sweet. You''re the first person I''ve helped on these message boards. It''s hard to help people, because questions usually get answered a few minutes after they''re posted.

-Forcas

"Elvis is alive. He is Barney the purple dinosaur. He is the pied piper that leads our children into the wages of sin and eternal damnation."



-Forcaswriteln("Does this actually work?");

This topic is closed to new replies.

Advertisement