When i uncomment '#define FMOD_PRE370' from the 'build/src/sound.c' file to get sound, I get the following error during compliation
src/sound.c: In function `wsayfollow':
src/sound.c:184: warning: comparison between signed and unsigned
src/sound.c: In function `wsay':
src/sound.c:238: warning: comparison between signed and unsigned
src/sound.c: In function `loadsong':
src/sound.c:331: error: implicit declaration of function `FSOUND_Stream_OpenFile'
src/sound.c:331: warning: assignment makes pointer from integer without a cast
make: *** [obj.gnu/sound.o] Error 1
Any help would be greatly apreciated.
Here is some information about my system
GCC 3.3.5
FMOD 3.74
Gentoo Linux (x86)
JonoF at
That error should be entirely obvious since you say you're using FMOD 3.74 yet you're uncommenting the flag that makes the code use the API for FMOD versions older than 3.70. Naturally it is going to throw an error because the function name and parameter structure changed between those releases.
Jonathon
TX at
JonoF said
That error should be entirely obvious since you say you're using FMOD 3.74 yet you're uncommenting the flag that makes the code use the API for FMOD versions older than 3.70. Naturally it is going to throw an error because the function name and parameter structure changed between those releases.
Jonathon
Heh, yeah, god forbid people look at what they're doing before doing it and asking why it didn't work. ;)
EmptyDoor at
Ooops, sorry. But there is no sound when it's commented out, either. Any suggestions for this?
TX at
EmptyDoor said
Ooops, sorry. But there is no sound when it's commented out, either. Any suggestions for this?
I guess it should have been mentioned that there isn't any sound in the port at all when built under Linux. Somebody patched the sound code from the icculus port into JFDuke once, but it was a fair bit back so I highly doubt the patch will apply cleanly anymore. The patch is somewhere in the Duke3D source code forum on 3DR that I moderate.
EmptyDoor at
It will be worth a try. Thankyou.
EmptyDoor at
I found the patch, and it works perfectly with JFDuke3D 20041013, which is the latest version I can successfully compile and run.
If anyone else desires sound, the patch can be found here.
YuGiOhJCJ at
jfduke3d_src_20050531
But me, I use the jfduke3d_src_20050531 version.
I have no sound, no music on GNU/Linux Debian, in the game the sound options are blue(unavailable).
There is a patch for this version?
I can edit myself the source? What I must add or remove?