Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: pilotx on November 16, 2013, 07:24:18 am

Title: Error sound (Linux)
Post by: pilotx on November 16, 2013, 07:24:18 am
In the game (FSPort 3.4 and  Freespace II - MediaVPs 3.6.12) when the big ships firing cannons and beams, I get the sound is interrupted.

I use a Linux (Debian) and the core of the game fs2_open_3.7.0, which is compiled successfully in my system. Sound settings in the system - the usual. Everything works, but in scenes with large ships with many shots I get
this (sound) error.

I reduced the video settings to the minimum, disabled 3D-sound settings, and more. But the error remains  :blah:
Title: Re: Error sound (Linux)
Post by: LordMelvin on November 16, 2013, 12:03:19 pm
What version of OpenAL does your system use?

Can you produce debug information as described here (http://www.hard-light.net/forums/index.php/topic,56279.msg1180359.html#msg1180359)
Title: Re: Error sound (Linux)
Post by: pilotx on November 16, 2013, 02:50:38 pm
Thank you for your response to my problem.

I successfully compiled SVN-snapshot (3.7.1) without any errors.  I used  "libopenal-dev 1.12.854-2" (from here: http://packages.debian.org/squeeze/libopenal-dev). OpenAL in system has same version - 1.12.854.
(Debug-Log I'll post a little later. I need time to recompile the binary.)
Title: Re: Error sound (Linux)
Post by: pilotx on November 18, 2013, 12:55:17 am
You gave a good idea.

I started the game with the binaries 'fs2_open_3.7.1_DEBUG', after compiling with '. /autogen.sh --enable-debug'.
The log contains a lot of information about possible problems. Maybe I run the program on a slow computer, or anything else.

However, the sound system is all right:
Code: [Select]
Initializing OpenAL...                                                                               
  OpenAL Vendor     : OpenAL Community                                                               
  OpenAL Renderer   : OpenAL Soft                                                                   
  OpenAL Version    : 1.1 ALSOFT 1.12.854                                                           
                                                                                                     
  Found extension "AL_EXT_float32".                                                                 
  Found extension "ALC_EXT_EFX".                                                                     
                                                                                                     
  Sample rate: 44100 (44100)                                                                         
  EFX enabled: NO                                                                                   
  Playback device: PulseAudio Software                                                               
  Capture device: PulseAudio Capture                                                                 
... OpenAL successfully initialized!
Title: Re: Error sound (Linux)
Post by: Fury on November 18, 2013, 01:12:25 am
To me it seems as if the number of sounds FSO attempts to use concurrently is higher than what your system is capable of.

It's been really long time since I've seen what settings any of the FSO launchers have, but might there be any settings to limit number of concurrent sounds under Audio settings of whichever launcher you're using?
Title: Re: Error sound (Linux)
Post by: niffiwan on November 18, 2013, 02:22:11 am
What are the contents of these files on your system?

/etc/openal/alsoft.conf
~/.alsoftrc

In particular, what is the value assigned to "sources".  I've gone a little overboard and set mine to 256, but any value greater than or equal to 48 should be fine.
Title: Re: Error sound (Linux)
Post by: pilotx on November 18, 2013, 02:35:11 am
Yes, the problem in the system settings.
I partially solved the problem by setting more "light" driver OSS in '~/.alsoftrc' ('/etc/openal/alsoft.conf'):
Code: [Select]
drivers = oss,pulse,alsa,solaris,dsound,winmm,port,waveInterrupt the sound was less. Now I will try, your suggestion with the other settings. Thank you very much for your advice.

upd: Yes. With a number of sources and the driver OSS - I have NO interrupt the sound! Great tnx!
Title: Re: Error sound (Linux)
Post by: jr2 on November 18, 2013, 10:50:44 am
Sticky?