Slashdot Mirror


ALSA vs. OSS vs. OSSFree

scenic writes "I was wondering what experience the /. community has had with ALSA vs the sound drivers that are part of the Kernel and the various other choices (such as the 4Front OSS packages). I've used the commercial OSS drivers as well as the "included" Linux drivers. I've started to look to ALSA for better sound response (for example, I've noticed with esd and the basic linux drivers, there is sometimes a lag when playing back video files through esd. I understand that esd is part of the issue, but it's sort of important to be able to multiplex sound). What have others' experiences been? What other solutions are there aside from things like esd?" Which sound systems do you find work for your system, and which don't? If specific hardware / software combinations can be endorsed or critiqued, it'll probably help a lot of people.

8 of 32 comments (clear)

  1. Read "Programming Linux Games"... by wrinkledshirt · · Score: 5, Informative
    John Hurt does an interesting breakdown of six different methods of programming sound for games, and talks about the advantages and disadvantages of each (not just the programming part).

    According to him OSS is a pretty entrenched technology, but ALSA's continuing to grow. The fact that ALSA's retaining nearly 100% compatibility with OSS probably means that at some point you'll be able to make a full shift from OSS to ALSA...

    Don't know if that's helpful (or even relevent).

    --

    --------
    Bleah! Heh heh heh... BLEAH BLEAH!!! Ha ha ha ha...

  2. Get a real sound card by bconway · · Score: 2, Insightful

    It sounds like your problem has nothing to do with the drivers you're using, it's that you're using a sound daemon. Most quality sound cards (like the SB Live Value, 39 bucks on pricewatch) will mix up to 32 wav sources in HARDWARE. There's no need to use esound or arts sound daemons to do mixing for you, and they only muck up the works. I've been using the OSS drivers from opensource.creative.com for my SB Live, but these were merged into the latest kernel releases, so I have no need to look outside the kernel.

    --
    Interested in open source engine management for your Subaru?
  3. Vote for ALSA by spuk · · Score: 3, Informative
    ALSA seems to have a better design and general quality. My (crappy) onboard ESS Solo 1 barely works (only pcm playback, didn't even record, the last time I checked) with the kernel driver, and its alsa driver supports (almost?) all the features, including 3D effects and all the in/out channels.

    --

    "Video bona proboque; deteriora sequor." -- Ovid
  4. Program using the OSS/Free API for now by salimma · · Score: 3, Informative
    As has been mentioned, ALSA has OSS compatibility, and even better, automatically multiplex audio streams for you. Yes, you can play multiple sound files at the same time without a sound server.

    Kind of like the jump from Win9x to Win2k, soundwise.

    HTH,

    Michel

    --
    Michel
    Fedora Project Contribut
  5. ALSA 0.9.0 betas are frustrating by Redline · · Score: 2, Informative

    While the latest ALSA drivers sound wonderful on my SB Live, I have a non-technical problem with them.

    I have tried to build several programs and libraries that have "native" ALSA support, and ALSA gets detected properly at configure-time. Then I proceed to make, and the build will die because the app only supports the 0.5.0 ALSA interface, and not 0.9.0. It is not really the fault of the ALSA drivers, the configure scripts (and ideally the software package itself) need updating to be aware of the newer ALSA interface.

    I just feel like I am losing functionality when I have to reconfigure the software with "--disable-alsa" and let the OSS emulation layer get used. <sigh> I wish I had more time to hack on my favorite projects. ALSA 0.9 for everyone!

  6. What I want to know is... by Wakko+Warner · · Score: 2

    ...which drivers support playing more than one goddamned sound at once? IRIX can do it. Hell, even Solaris 8 can do it. And, you know, Windows has been able to do it since Win95. It's been 10 years; where are my concurrent Linux sound drivers?

    Does anyone know if they exist and what card I should be purchasing?

    (Please do not mention ESD, the Enlightened Sound Daemon. This is not a good solution. ESD built into the kernel would be.)

    - A.P.

    --
    "Remember when the U.S. had a drug problem, and then we declared a War On Drugs, and now you can't buy drugs anymore?"
    1. Re:What I want to know is... by gid · · Score: 3, Informative
      As mentioned above, yes ALSA supports hardware mixing. When you have the ALSA drivers running, and one of the magical sound cards, then more than one program can essentially use /dev/dsp at once. I've been digging for about 30 minutes now and still can't find a list of cards that support hardware mixing. So here's the cards that I KNOW support hardware mixing:

      ymf724 pci based cards

      ymf744 pci based cards, it's essentially a ymf724 but it has digital out, and 4 channel out

      SB Live

      Trident 4DWave

      I own two ymf724's and a ymf744, great cards, they sound great, and they're cheap :) The ymf744and ymf724 have issues with quake3, it hangs on exit :( But you can just kill off the process luckily. This is with the latest .9.0beta7 drivers, the .5.x drivers don't have any noticeable issues though.

      A quick search here's the cards: ymf744 [$18] and ymf744 pro version (digital out version?) [$25]

  7. Re:Okay, here's the funny thing! by mattdm · · Score: 2

    :) Actually, you can link to books.

    (This bit here is to get around the stupid "postercomment compression filter" yet still post my insightful comment....)