#32 Not able to choose soundcard on linux


The sound cards available in linux are hard coded in
linuxmedia.cxx. The code tries these 2 devices, in order, then
gives up:


I have onboard sound and an additional sblive. The sblive (with
the speakers connected!) is /dev/dsp1 (or /dev/sound/dsp1), so
I can't get bzflag to make noises very easily.

Shouldn't the sound device be a command line/configuration
option, or perhaps at least changeable by an environment
variable or something?



  • Micah Elizabeth Scott

    Logged In: YES

    While it would be nice to have an option to choose the sound
    card, it doesn't really make sense for /dev/dsp to not be
    your primary audio device. If /dev/dsp is a symbolic link,
    it should be easy to remove it and make a new link to
    /dev/sound/dsp1. Worst case you might have to remove the
    kernel module for your onboard sound, but if you don't use
    it that probably isn't a problem.

  • Cris Bailiff

    Cris Bailiff - 2003-06-28

    Logged In: YES

    But I do use the onboard sound... I use the onboard stuff for line and
    mic in from one audio source, and for mixing from some of the
    onboard hardware.

    I use the sblive for another line in and output to my digital speakers
    via the onboard surround sound etc.

    Yes, /dev/dsp is a link to /dev/sound/dsp, but if I move it, then my
    sound recording apps (which mostly only know /dev/dsp and
    /dev/dsp1) won't be able to record from the first sound device.

    Most apps have some way of changing audio devices or using a sound
    manager, so it didn't seem an unusual request. I could submit a patch
    for an env variable option (if it would be accepted), but it wouldn't be
    as 'neat' as having a proper switch or config setting.


  • Tupone Alfredo

    Tupone Alfredo - 2004-02-18
    • milestone: 100856 -->
    • assigned_to: timriker --> nobody
    • labels: 371931 -->
    • status: open --> closed-fixed
  • Tupone Alfredo

    Tupone Alfredo - 2004-02-18

    Logged In: YES

    It is now possible, by a simple menu choice, to select the
    audio device and driver. The version is in CVS, and will be
    broadly available in the next version of bzflag.

  • Jeff Myers

    Jeff Myers - 2011-07-31
    • status: closed-fixed --> open-fixed
  • Jeff Myers

    Jeff Myers - 2011-07-31
    • status: open-fixed --> closed-rejected

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks