Technical support > Feature Requests

No Sound

<< < (2/3) > >>

Bandobras:
Ooops. That was a bad idea --- advice something I can't help in. ;O) I have no windows and no experience with them. Sorry.

Anybody?

Seems Direct Sound related. Perhaps try with the SLD sound again? BTW, is it svn trunk or svn ufo_r2.0whatever?

Gambit:

--- Quote from: "Bandobras" ---[...]
Seems Direct Sound related. Perhaps try with the SLD sound again? BTW, is it svn trunk or svn ufo_r2.0whatever?
--- End quote ---


Hm. I'm not sure what you mean. I installed the game with the windows installer from the sourceforge website. That one is called: ufoai-2.0-RC2-win32.exe.

Then I put the stuff that Turtoise downloaded from "https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk" in the directory of my installed ufo. Then I did the compiling as described in the wiki. Works very well for the dlls one has to compile, but not for the ufo.exe.

Does this answer your question? I'm not sure about it. ;)

Since Mattn stated that the missing sound is due to a flaw in the sdl-sound driver, compiling with it would mean to come back to very problem of mine again.

None the less I'll try that.

But maybe some experienced coder could give me a solution to my compile problem from above or even better send me an ufo.exe for WinXP that is compiled with direct sound support!

Thx in advance.

Bandobras:

--- Quote from: "Gambit" ---Then I put the stuff that Turtoise downloaded from "https://svn.sourceforge.net/svnroot/ufoai/ufoai/trunk" in the directory of my installed ufo.

--- End quote ---


As I admitted, I have no clue, but you put the trunk together with the RC2? Perhaps separate them somewhat (in Linux putting in different directories does it, but I'm not sure about Windows...). What part of the following path is the old one, and which is the new trunk: "E:\Gamez\UFOAI\src\"?

Anyway, good that you got yourself a trunk... :)

Galsiah:

--- Quote from: "Gambit" ---Unfortunately I get an error trying to compile the ufo.exe:

In file included from win32/winquake.h:29,
                 from win32/in_win.c:24:
E:/Appz/Other/Microsoft DirectX SDK (June 2006)/Include/dsound.h:1899: error: redefinition of typedef 'LPDIRECTSOUNDFULLDUPLEX'
E:/Appz/Other/Microsoft DirectX SDK (June 2006)/Include/dsound.h:175: error: previous declaration of 'LPDIRECTSOUNDFULLDUPLEX' was here

make.exe: *** [win32/in_win.o] Error 1

Suggestions?
--- End quote ---
I got that too with a similar setup. All you need to do is open dsound.h and comment out the second definition of LPDIRECTSOUNDFULLDUPLEX - so comment out line 1899.

After doing that, it compiled without trouble for me.
Of course the two definitions are presumably there for a reason, so it might be best to keep an unaltered dsound.h for usage elsewhere. (though I guess Dev-C++ with dsound.h will always have this problem)

Hope that helps.
(also make sure that your ref_gl....dll and game....dll are named correctly, or they won't load. For me it's ref_gl32d.dll and game32d.dll. If you have trouble, look in sys_win.c.)

EDIT: this did get the sound working, by the way :)

Mattn:
please put this in our wiki for the dev-cpp article

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version