Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Is there a Hack to make audio play when window in background?

Author
Message
dj chainz
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 5th Jul 2005 03:41
I have a windowed project that plays audio. However, DBPro won't let the sounds work unless the window is the selected one. I don't want to have to keep the window on top, so what can I do?

There must be some Directsound hack/c++ code I can use but I can't figure it out... MSDN/google/these forums have not helped.

I am the lead programmer at red spark studios
http://www.redsparkstudios.co.uk
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 5th Jul 2005 13:12
maybe use PlaySoundA in the win32api instead of using DBP's hook into the sound system. Im not sure but its worth a try.

DBP Plugins Latest: MSAccess, SQLServer - July 2005
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 5th Jul 2005 15:07
must only be with sound cause music and animation commands work fine in background

n00bs will be shot on spot...
i need some more ammo there are just too many of them better call in the moderators to help

Login to post a reply

Server time is: 2024-11-21 14:30:32
Your offset time is: 2024-11-21 14:30:32