AvP - no sound in *buntu Jaunty nor Debian Lenny

Need help with one of the installers?
PsynoKhi0

AvP - no sound in *buntu Jaunty nor Debian Lenny

Postby PsynoKhi0 » Wed Aug 19, 2009 4:03

Heya,
Your installer worked great though as mentioned in the subject, the game is as eloquent as a fish heh

First it complained about a missing libopenal.so.0, and the 2 distros ship with libopenal.so.1
I tried creating a symlink, but no luck.
Uncommenting SDL_AUDIODRIVER="alsa" in the AvP script made no difference either.

The closest I've found was this thread:
http://www.nabble.com/openal-soft-td15320569.html
The interesting bit:
Ah..

snprintf(buf, sizeof(buf), "'( (sampling-rate %d ))\n", AvpFrequency);

AvpSoundDevice = alcOpenDevice(buf);

Seems its using an SI-specific initialization config (which the spec does
allow for, but also says it's implementation dependant). Simply using NULL
instead of buf, or an empty string for buf, should work.

Note however the discussion dates from before the latest git snapshot from icculus. Also what they mean about "using NULL" is kind of above my head.

The openal.c file in the most recent source code has this:

Code: Select all

AvpSoundDevice = alcOpenDevice(buf);
   if (AvpSoundDevice == NULL) {
      return 0;
   }

   AvpSoundContext = alcCreateContext(AvpSoundDevice, attrlist);
   if (AvpSoundContext == NULL) {
      /* TODO: destroy sound device */
      return 0;
   }

So uh... yeah... Any suggestion welcome :)

Edit: my CD is an OEM version that shipped with a SBLive! card.

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Wed Aug 19, 2009 18:22

Hi PsynoKhi0, try building your own AvP binary.

Get the source code:

git clone git://git.icculus.org/relnev/avp.git

Go one:

cd avp && make

Good luck

PsynoKhi0

Postby PsynoKhi0 » Wed Aug 19, 2009 22:05

Hi,
Building didn't do much good unfortunately.
The game starts in windowed mode, still no sound.
Do I need to modify the openal.c file somehow?

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Fri Aug 21, 2009 17:52

Sorry PsynoKhi0 as wo have nothing to do with the port itself there is not much we can do for you.

I have not tried it but give it a shot:

http://bugzilla.icculus.org/show_bug.cgi?id=2895

This first patch solves some issues with newer openal and GCC 4.1 compilation.


Maybe ...

PsynoKhi0

Postby PsynoKhi0 » Fri Aug 21, 2009 21:07

Thanks for the find, however they seem to be included in the latest master (also note that the openal.c patches are from 2006).

From http://bugzilla-attachments.icculus.org ... gi?id=1113

Code: Select all

Index: openal.c
===================================================================
RCS file: /cvs/cvsroot/avp/openal.c,v
retrieving revision 1.24
diff -u -p -r1.24 openal.c
--- openal.c   10 Aug 2003 02:38:08 -0000   1.24
+++ openal.c   12 Dec 2005 22:50:24 -0000
@@ -1029,7 +1029,7 @@ int LoadWavFromFastFile(int soundNum, ch
       strcpy (buf, wavFileName);
       ffread (&buf[strlen(wavFileName)+1], len, 1, fp);
       ffclose (fp);
-      len = (int)ExtractWavFile (soundNum, buf);      
+      len = (ExtractWavFile (soundNum, buf) == NULL ? 0 : 1);
       free (buf);
    }


Latest master:

Code: Select all

      len = fftell (fp);
      ffseek (fp, 0, SEEK_SET);
      buf = (unsigned char *) malloc (len + strlen (wavFileName) + 1);
      strcpy (buf, wavFileName);
      ffread (&buf[strlen(wavFileName)+1], len, 1, fp);
      ffclose (fp);
      ok = ( ExtractWavFile (soundNum, buf) != NULL );
      free (buf);

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Sat Aug 22, 2009 18:00

You are on you own, I have no ideas how I could help you.
Please report back if you find anything useful.

mat
Posts: 65
Joined: Mon Oct 10, 2005 18:10

Postby mat » Sat Nov 07, 2009 21:20

kratz00 wrote:You are on you own, I have no ideas how I could help you.
Please report back if you find anything useful.


This is problem with new openal and glibc:

http://bugs.gentoo.org/206380

Here is new version avp and patch:

http://gentoo-portage.com/games-fps/avp
http://prefix.gentooexperimental.org/rs ... avp/files/

Can you make new installer for this game?

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Sun Nov 08, 2009 17:33

Thanks mat.

PsynoKhi0 can you confirm those patches work?

mat
Posts: 65
Joined: Mon Oct 10, 2005 18:10

Postby mat » Fri Nov 27, 2009 23:14

- Removed obsolete SI-era OpenAL initialization.
- Switched openal-config with pkg-config openal.

http://git.icculus.org/?p=relnev/avp.git


That works for me.
Last edited by mat on Fri Nov 27, 2009 23:16, edited 1 time in total.

mat
Posts: 65
Joined: Mon Oct 10, 2005 18:10

Postby mat » Fri Nov 27, 2009 23:15

mat wrote:- Removed obsolete SI-era OpenAL initialization.
- Switched openal-config with pkg-config openal.

http://git.icculus.org/?p=relnev/avp.git


That works for me.

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Fri Nov 27, 2009 23:17

Thanks for the heads up mat.

I will try to update the installer soon.

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Wed Jan 06, 2010 12:16

Here we go:

http://liflg.0wnitsch.de/files/beta/avp ... x86.sha256
http://liflg.0wnitsch.de/files/beta/avp ... nguage_x86

New binary which was build from the latest source code and was linked against the openal-soft library (libopenal.so.1).

Please report back, thanks.

PsynoKhi0

Postby PsynoKhi0 » Tue Jan 12, 2010 16:52

Sorry, had almost given up on that one and didn't check for new replies.

As for the patched beta installer, it fails to detect my CD.
OpenSUSE 11.2 64bit, KDE 4.3
The CD is labeled AVP_OEM (got it bundled with a SoundBlaster Live!). Note that the older final installer worked just fine at that stage (it was on another distro, 32bit to boot, though).

kratz00
liflg member
Posts: 1654
Joined: Fri Oct 22, 2004 16:23

Postby kratz00 » Tue Jan 12, 2010 19:00

Hi PsynoKhi0,

the old installer is still available, could you please cross check.

Regards
-Steffen

PsynoKhi0

Postby PsynoKhi0 » Wed Jan 13, 2010 19:41

Meh, I'm getting really lazy, should have done that first... :oops:
The official one has issues to, I'll have to investigate

Edit: ok, turns out the CD wasn't actually mounted :| the official installer asked to mount it, while the beta one asked me to insert the CD, could be due to the localized translation though.

Other than that, so far so good, "works for me". Could launch the game and get sound at least. Will have to play some to find out more.

Great job so far, in any case :)


Who is online

Users browsing this forum: No registered users and 2 guests