how to use nexuiz-sdl with a different alsa device ?

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

Moderators: Nexuiz Moderators, Moderators


  • Hi there :)

    I would like to know if there is an option for nexuiz-sdl to start it using a different alsa device ?

    for example i can start mplayer using that different alsa device using the fallowing command:
    Code: Select all
    mplayer -ao alsa:device=equalized myfile.mp3


    reason for doing this is to apply a alsa equalizer plugin to nexuiz.

    os is linux.

    thanks
    lio
    User avatar
    liolak
    Alien
     
    Posts: 114
    Joined: Fri Jan 25, 2008 12:16 am
    Location: Montréal, Canada

Sun Oct 04, 2009 3:57 am

  • after discussing about that issue with Lixivial, i learned that there is the -sndpcm option that does exactly what i want for nexuiz-glx. So my question is now : is there an equivalent feature for nexuiz-sdl ?
    User avatar
    liolak
    Alien
     
    Posts: 114
    Joined: Fri Jan 25, 2008 12:16 am
    Location: Montréal, Canada

Sun Oct 04, 2009 9:17 am

  • You can somewhat control SDL with environment variables, just search the web. You might try setting the AUDIODEV env var to the ALSA device name, for example (provided SDL is actually using the ALSA audio driver).
    User avatar
    parasti
    Alien
     
    Posts: 110
    Joined: Sun May 11, 2008 11:32 pm
    Location: On the walls and the ceiling

Sun Oct 04, 2009 4:56 pm

  • thanks parasti, that was a good lead but i cant figure the proper syntax to use my device.

    searched in google a lot, but most cases i found where using some default devices.

    for example if i set:
    Code: Select all
    export SDL_AUDIODRIVER="alsa"
    export AUDIODEV=hw:0


    it works, as in i have sounds. but obviously its not using my equalizer device. i tryed numerous way of pointing it to my "equalized" device, like:
    Code: Select all
    export AUDIODEV=equalized

    but nexuiz always dont like it and dont play sound at all.
    User avatar
    liolak
    Alien
     
    Posts: 114
    Joined: Fri Jan 25, 2008 12:16 am
    Location: Montréal, Canada

Sun Oct 04, 2009 10:28 pm

  • liolak wrote:thanks parasti, that was a good lead but i cant figure the proper syntax to use my device.

    searched in google a lot, but most cases i found where using some default devices.

    for example if i set:
    Code: Select all
    export SDL_AUDIODRIVER="alsa"
    export AUDIODEV=hw:0


    it works, as in i have sounds. but obviously its not using my equalizer device. i tryed numerous way of pointing it to my "equalized" device, like:
    Code: Select all
    export AUDIODEV=equalized

    but nexuiz always dont like it and dont play sound at all.


    Try
    Code: Select all
    plug:equalized
    . Does that help?
    User avatar
    lda17h
    Alien
     
    Posts: 221
    Joined: Tue Jun 16, 2009 1:04 pm
    Location: Germany

Sun Oct 04, 2009 11:19 pm

  • thanks for helping lda17h, unfortunately it does not work.

    here is the exact error it gives me
    Code: Select all
    S_Startup: initializing sound output format: 44100Hz, 16 bit, 2 channels...
    ALSA lib pcm.c:2171:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_equal.so
    Wanted audio Specification:
       Channels  : 2
       Format    : 0x8010
       Frequency : 44100
       Samples   : 2048
    Failed to open the audio device! (No available audio device)
    S_Startup: sound output initialization FAILED


    it says equal instead of equalized because thats the real name im using, i used equalized here just for more context.

    i checked for "/usr/lib/alsa-lib/libasound_module_pcm_equal.so" and yes it exist.
    User avatar
    liolak
    Alien
     
    Posts: 114
    Joined: Fri Jan 25, 2008 12:16 am
    Location: Montréal, Canada


  • Just having the plugin isn't enough. You also need to define an ALSA pcm device by the way. Oh i saw that you have it. Do

    Code: Select all
    aplay -L


    to get a list of devices available on your system anyways..
    He can talk the talk, but can he caulk the caulk?
    User avatar
    lda17h
    Alien
     
    Posts: 221
    Joined: Tue Jun 16, 2009 1:04 pm
    Location: Germany


  • hi there

    not using that equalizer thing anymore :/
    Thanks for your suggestion though, I appreciate it :)
    User avatar
    liolak
    Alien
     
    Posts: 114
    Joined: Fri Jan 25, 2008 12:16 am
    Location: Montréal, Canada



Return to Nexuiz - Support / Bugs




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