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.

DarkBASIC Professional Discussion / A Compiler Question Relating to Sound

Author
Message
100% Pure Dave
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location: Perth, Australia
Posted: 19th Mar 2004 15:50
Correct me if im wrong but does DB Pro still activate the sound handling of direct X even if your program does NOT use sound or music at all?

I ask because an App i have written which is used in conjunction with othe window apps, seems to lock sound playback in any other application is open (seems to only occur with half duplex sound cards tho or those whose drivers dont allow mixing of audio playback from different apps).

So why does this happen? is there a way to tell the compiler to NOT include/activate direct x sound handling when you know your app will not be using it?

of course i am assuming this is causing the problem i have no idea so does anyone know for sure? Rob K? Rich? anyone?

cheerz
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 19th Mar 2004 15:52
Quote: "DB Pro still activate the sound handling of direct X even if your program does NOT use sound or music at all?
"

Yes, I think it does.

Quote: "So why does this happen? is there a way to tell the compiler to NOT include/activate direct x sound handling when you know your app will not be using it?"

This has been mentioned before, I think - if you use a function that also includes the sound commands, it gets included... I think Lee said he might be sorting this out in U7.


The place for all great plug-ins.
XP3000+,1Gb RAM,FX5600,1Mb ADSL,Router,.Net 2003 Pro & me
100% Pure Dave
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location: Perth, Australia
Posted: 19th Mar 2004 15:57
SPEWWWWWWWWWWWWWW! lol

well i hope its sorted out soon!, altho it runs fine on my pc and doesnt interfere, the guy thats really likes to use my app gets the problem on his machine all the time and its driving him nuts!!!

as far as i know i am not using anything related to sound, only 2D GFX, pasting images to the screen and memblock access

cheerz
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 19th Mar 2004 15:59 Edited at: 19th Mar 2004 16:00
You could always use something BASS or FMOD - see if that causes a problem. If it does then its probably the card.


The place for all great plug-ins.
XP3000+,1Gb RAM,FX5600,1Mb ADSL,Router,.Net 2003 Pro & me
100% Pure Dave
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location: Perth, Australia
Posted: 19th Mar 2004 16:07
like i said, it works no problems on my machine my soundcard and driver are happy to share playback with multiple apps, so i dunno what ya trying to get me to see on my end. will bass and fmod stuff up playback in other apps on my machine?

Ya know what i would really like to know? If anyone knows what bytes to look for and what to change them to in a compiled exe to knock out the initialising of direct x sound in the app! now that would be handy dandy while i wait for the latest patch! so how about it anyone know what i should be looking for or what i should change it to? a NOP would work maybe depends on how things get started in the file tho...... im boggling now....... c'mon must be some hackers out there that have messed around with the compiled exe's! lol

cheerz

cheerz
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 19th Mar 2004 16:14
Its to see if the soundcard can handle sound mixing properly.


The place for all great plug-ins.
XP3000+,1Gb RAM,FX5600,1Mb ADSL,Router,.Net 2003 Pro & me
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 19th Mar 2004 16:17
You could try disabling the sound .DLL's.

In the DBPro folders, you should find a load of .dll files that get added to your executables on compiling - try renaming the sound ones so they aren't .dll, make them .dlx and see what happens.


Van-B


The nature of Monkey was irrepressible!.
100% Pure Dave
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location: Perth, Australia
Posted: 19th Mar 2004 16:18
hey good thinking 99 i will try it and let ya know! altho i suspect the compiler will spit the dummy when it cant find the dll's lol
100% Pure Dave
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location: Perth, Australia
Posted: 19th Mar 2004 16:27
hey well lookee here! by renaming the sound and music dll's it reduce the file size by 0.16mb the down side? the exe wont run anymore lol
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Mar 2004 18:16
The compiler will automatically exclude sound & music DLLs if you do not use any sound/music functions *unless* the sound/music DLLs are linked to one or more of the DLLs which you are using. These links aren't always obvious but they are there.

DLL inclusion on a per-function link rather than per-DLL link will probably be here a long way from now.

BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games. - Plus URL download, win dialogs.
Over 140 new commands
100% Pure Dave
21
Years of Service
User Offline
Joined: 10th Mar 2004
Location: Perth, Australia
Posted: 19th Mar 2004 18:46
rob, in this particular program i basically load a file as a memblock, load some images and access the memblock and the images, thats about it... so what can be done to fix this problem?
TheAbomb12
21
Years of Service
User Offline
Joined: 14th Aug 2003
Location: Amist the blue skies...
Posted: 19th Mar 2004 19:49
Quote: "hey well lookee here! by renaming the sound and music dll's it reduce the file size by 0.16mb the down side? the exe wont run anymore lol "


Try using the Twilight IDE; there is a menu where you can select which DLLs to include during compile so you can check off the ones you are not using (though I havent done this much myself). If might be a bit easier (and less dangerous) then renameing all the DLL you don't want to use.

Amist the Blue Skies...
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Mar 2004 23:28
Quote: "so what can be done to fix this problem?"


Your project uses the memblocks DLL, and the memblocks dll has a MAKE MEMBLOCK FROM SOUND function. Even though you haven't used this function, because it is in that DLL, and it requires the sound DLL, the sound DLL is still loaded.

BlueGUI:Windows UI Plugin - All the power of the windows interface in your DBPro games. - Plus URL download, win dialogs.
Over 140 new commands

Login to post a reply

Server time is: 2025-06-04 19:09:27
Your offset time is: 2025-06-04 19:09:27