More sound problems

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

Wed Mar 15, 2006 9:10 pm

  • I finaly got my linux desktop install working. Im running kubuntu 5.10 x86_64. i installed the nvidia drivers viathe visual apt-get interface. Sound is working.

    I can start and run nexuiz, but the sound is dealyd alot, somethling liek 0.5 secs. i satrt nexuiz with -sndsterio -sndspeed 48000 (w/o the -48000 the sound is messed up)

    Im not 100% sure, but i think the controls are laggin too..?
    HOF:
    <Diablo> the nex is a "game modification"
    <Diablo> quake1 never had a weapon like that.
    <Vordreller> there was no need for anything over 4GB untill Vista came along
    <Samua>]Idea: Fix it? :D
    <Samua>Lies, that only applies to other people.
    User avatar
    tZork
    tZite Admin
     
    Posts: 1337
    Joined: Tue Feb 28, 2006 6:16 pm
    Location: Halfway to somwhere else

Wed Mar 15, 2006 9:20 pm

  • I've got that sound delay problem too if i run the -sdl in windows
    the spice extend life!
    the spice expand conciousness!
    the spice is vital to space travel!
    sooooo.. tell me what you want, waht you really-really want
    I will proceed directly to the intravenous injection of hard drugs, please.
    User avatar
    tChr
    Forum addon
     
    Posts: 1501
    Joined: Tue Feb 28, 2006 9:11 pm
    Location: Trondheim, Norway

Thu Mar 16, 2006 1:26 am

  • A thing worth trying would be to compile the -glx version of the engine your self. This sounds like some problems with sdl as there are quite a few people with this problem and the -glx version helped there. However it would be even better to find a fix for sdl :). I have to get my linux to run Nexuiz too next week when i have vacation ;)
    Last edited by esteel on Thu Aug 31, 2006 2:57 pm, edited 1 time in total.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Thu Mar 16, 2006 1:33 am

  • You can try to create a file ~/.asoundrc and put:
    Code: Select all
    pcm.!default {
            type hw
            card 0
            device 0
    }
    in there...

    That might fix the delay (at least it does on some of the fedora machines at my university).
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Thu Mar 16, 2006 2:04 am

  • That fixed the dealy in a maffia kinda way.. it silanced it alltogether xD

    Code: Select all
    ^7No available audio device
    ^7No available audio device
    ^7No available audio device
    ^7No available audio device
    ^7No available audio device
    ^7Failed to open the audio device!
    HOF:
    <Diablo> the nex is a "game modification"
    <Diablo> quake1 never had a weapon like that.
    <Vordreller> there was no need for anything over 4GB untill Vista came along
    <Samua>]Idea: Fix it? :D
    <Samua>Lies, that only applies to other people.
    User avatar
    tZork
    tZite Admin
     
    Posts: 1337
    Joined: Tue Feb 28, 2006 6:16 pm
    Location: Halfway to somwhere else

Thu Mar 16, 2006 10:21 am

  • tZork wrote:That fixed the dealy in a maffia kinda way.. it silanced it alltogether xD

    Hmm i have seen such errors that were fixed by KadaverJacks ~/.asoundrc. Hmm do you have two sound cards installed?
    Last edited by esteel on Thu Aug 31, 2006 2:58 pm, edited 1 time in total.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Fri Mar 17, 2006 12:46 am

  • yes, onbord nforce3 sound and a creative something. i use the onvord for gaming (the creative one as a old bord, i just use it for skype)
    HOF:
    <Diablo> the nex is a "game modification"
    <Diablo> quake1 never had a weapon like that.
    <Vordreller> there was no need for anything over 4GB untill Vista came along
    <Samua>]Idea: Fix it? :D
    <Samua>Lies, that only applies to other people.
    User avatar
    tZork
    tZite Admin
     
    Posts: 1337
    Joined: Tue Feb 28, 2006 6:16 pm
    Location: Halfway to somwhere else

Fri Mar 17, 2006 6:38 am

Fri Mar 17, 2006 12:30 pm

  • Yes my thought too, ill have a look at that link later and see what i can cope up with. i guess its abt time i learn how to set up a linux desktop machine properly :oops:
    HOF:
    <Diablo> the nex is a "game modification"
    <Diablo> quake1 never had a weapon like that.
    <Vordreller> there was no need for anything over 4GB untill Vista came along
    <Samua>]Idea: Fix it? :D
    <Samua>Lies, that only applies to other people.
    User avatar
    tZork
    tZite Admin
     
    Posts: 1337
    Joined: Tue Feb 28, 2006 6:16 pm
    Location: Halfway to somwhere else

Tue Mar 21, 2006 2:09 pm

  • I also have a pretty annoying problem with sound:
    Sound is scrambled and I get a strange echo. This happens with differend kernel-, alsa-, sdl-, and Nexuiz versions.
    I did not find a solution for it, but I get almost acceptable sound with setting
    _snd_mixahead "1000" and running Nexuiz with a really strange -sndsterio -sndspeed 24000.
    My soundchip is a VT8233/A/8235/8237 AC97. Setting differend dxs_support-options also doesnt change anything.
    DrDoom
    Member
     
    Posts: 20
    Joined: Tue Mar 21, 2006 1:40 pm

Wed Mar 22, 2006 5:55 pm

  • I also compiled the glx version myself, because of a problem with glibc 2.3.6, but that also didnt help. The sound is now always that badly scrambled/has echos that I had to turn it off completely.
    DrDoom
    Member
     
    Posts: 20
    Joined: Tue Mar 21, 2006 1:40 pm

Wed Mar 22, 2006 7:00 pm

  • DrDoom wrote:I also compiled the glx version myself, because of a problem with glibc 2.3.6, but that also didnt help. The sound is now always that badly scrambled/has echos that I had to turn it off completely.

    Have you tried the parameters "-sndspedd 48000" and/or "-sndstereo" yet?
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Wed Mar 22, 2006 9:07 pm

  • DrDoom wrote:I did not find a solution for it, but I get almost acceptable sound with setting _snd_mixahead "1000" and running Nexuiz with a really strange -sndsterio -sndspeed 24000.

    KadaverJack wrote:Have you tried the parameters "-sndspedd 48000" and/or "-sndstereo" yet?

    I would suppose so as he even tried some really strange values :)
    Last edited by esteel on Thu Aug 31, 2006 7:17 pm, edited 1 time in total.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Wed Mar 22, 2006 9:13 pm

  • Yes I did. Also the .asoundrc, posted here. That also didnt help.
    Also the sdl-version does not produce any sound. Ill check wheter this is a compilation problem (missing libsdl-mixer-dev package or so).
    Yes, forgot libsdl-mixer-dev package. Sound works perfect, but only 2/6 channels are active. -sndstereo is needed to get unscrambled sound.
    DrDoom
    Member
     
    Posts: 20
    Joined: Tue Mar 21, 2006 1:40 pm

Sun Mar 26, 2006 10:56 am

  • I don't have much linux experience, but perhaps you could try compiling with an alternative sound mixer?

    I believe it would be "make cl-nexuiz DP_SOUND_API=OSS" where ALSA is likely the default, OSS is another option to try.
    --Willis
    User avatar
    Willis
    Site Admin
     
    Posts: 168
    Joined: Tue Feb 28, 2006 7:00 pm
    Location: Wisconsin, USA

Sun Mar 26, 2006 12:49 pm

  • tZork, Why do you have both soundcards enabled? do you really need ehm both?
    one was onboard and the other is ???

    In most cases the onboard soundcards are lacking mmap function and thats why there are a lot of problems. If one uses something like a Soundblaster live or newer this problem should go away. I would recomend trying to disable the onboard card and then maybe try KadaverJacks fix again.
    dfkgmasdfnasodrg
    Alien
     
    Posts: 153
    Joined: Sat Mar 04, 2006 4:21 pm

Tue Mar 28, 2006 8:37 pm

  • Another trick that may help:
    Code: Select all
    $ export SDL_AUDIODRIVER=dma

    or
    Code: Select all
    $ export SDL_AUDIODRIVER=oss

    before starting the SDL version. This goes over ALSA's OSS emulation and skips .asoundrc and similar files.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Tue Mar 28, 2006 8:56 pm

  • Vociferous wrote:tZork, Why do you have both soundcards enabled? do you really need ehm both?
    one was onboard and the other is ???

    In most cases the onboard soundcards are lacking mmap function and thats why there are a lot of problems. If one uses something like a Soundblaster live or newer this problem should go away. I would recomend trying to disable the onboard card and then maybe try KadaverJacks fix again.


    Need is maybe the wrong word, but i do use them both. mainly i use the addon card for skype and the onbord for everythign else. True thet onbord's usualy aint the best things under the sun, but it does work fine in windows so it should be possible to make it work fine in linux too. I havent had time to debug this stuff eny futher lately, hope i will get some time to do it next weak or so.
    HOF:
    <Diablo> the nex is a "game modification"
    <Diablo> quake1 never had a weapon like that.
    <Vordreller> there was no need for anything over 4GB untill Vista came along
    <Samua>]Idea: Fix it? :D
    <Samua>Lies, that only applies to other people.
    User avatar
    tZork
    tZite Admin
     
    Posts: 1337
    Joined: Tue Feb 28, 2006 6:16 pm
    Location: Halfway to somwhere else

Thu Mar 30, 2006 4:33 am

  • Are you using Arts (the KDE sound server artsd - is it running)? I run Nexuiz 1.5 on OS X and notice a slight delay for the sound on item pickups, but virtually no delay at all when firing weapons etc. - this is an SDL version.

    If you have any sound servers running on Linux, they can sometimes interfere with the otherwise normal operation of the sound subsystem. For example on KDE usually artsd is enabled by default, and in Gnome there is usually esd. If either of those is enabled or running, try disabling (or just killing them). There's a control panel for Arts in KDE that lets you do this, for ESound you may need to use the gnome config editor to change the value (or add it) in a gconf to disable an auto-start of esd.

    You try those already?
    User avatar
    ds01
    Member
     
    Posts: 47
    Joined: Wed Mar 29, 2006 5:54 am
    Location: Lvl 7

Wed Jun 28, 2006 1:54 pm

  • I had the same problems with my sound (0.5 seconds delay)
    But i have only 1 soundcard ( only onboard sound ).

    I'm running Nexuiz on Linux ( Ubuntu 6.06 64-bit ).

    the sdl-version (the default in the startscript) has this strange bug, but
    the glx-Version works fine for me.

    Whith WindowsXP ( same machine ) i have no problems.
    I killed OBI (Be) !!!

    .... when he was drunken
    titi
    Member
     
    Posts: 33
    Joined: Thu May 11, 2006 9:05 am
    Location: Northern Germany

Fri Jul 14, 2006 3:16 pm

  • There have been changes to the SDL library so that those sound lags should no longer appear. So a update of your linux distribution should fix that bug. The next Nexuiz patch will ship a new version of the lib for windows too..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am



Return to Nexuiz - Support / Bugs




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest