#72 ALSA 1.x support?


it would be nice to have full ALSA support. And no, OSS-emulation
ist *not* ok, since it lacks many features ALSA has. JACK support
is ok, but pure ALSA (at least optional) would be best.

With ALSA support, I could use 'dmix' and for pure sound-editing,
this would be perfect. Only if I want to record stuff, then I had to
start jackd. jackd isn't running all the time, since it hooks the sound
device and no one else can use it then (all non-jack enabled apps).



  • Davy Durham

    Davy Durham - 2004-08-01

    Logged In: YES

    Ok, I went one day to do a native ALSA implementation and
    the tutorial I found said that it would be better to simply
    make a Jack implemention, so I created a quick and dirty one.

    I'm curious tho, what features of ALSA could you use that
    would be an improvement over the OSS emulation. Please
    tell me, even if it's just one. I dunno any. (what's dmix
    and how would alsa and dmix connect?)

    BTW- you can edit ~/.rezound/registry.dat and change the
    order it tries to initialize the audio I/O libraries which
    might solve your problem with having to startup JACK to record.

  • Davy Durham

    Davy Durham - 2004-08-01
    • assigned_to: nobody --> ddurham
  • Nobody/Anonymous

    Logged In: NO

    main reason: dmix and dsnoop ;-)

    you can setup a virtual device in your asound.conf and make it even the
    default device. Now, every app can use your dmix device instead of the
    hw:0,0 thingy. with dmix, the device is never locked, all apps can use the
    device at the same time.

    furthermore: dsnoop
    this is the complement for a recording device. As many apps as you want
    can access the 'capture' at the same time, getting the same data.

    also you can join multiple cards to a virtual single one. ALSA has so many
    features! And it's fully transparent to the application.

    ok, lets say, we have setup a dmix/dsnoop device (full-duplex) and named
    it 'mycard'. Then the app has only to open 'mycard' and that's all. You can
    access it as normal. It's just a different name (so you should make a
    config-dialog for it).

    There're many more features. For example sample-routing (so you can
    setup a virtual fake 5.1 device for stereo sources). ALSA is a monster! ;-)


  • Davy Durham

    Davy Durham - 2004-08-28
    • status: open --> closed
  • Davy Durham

    Davy Durham - 2004-08-28

    Logged In: YES

    Ok, I've implemented native ALSA and checked it into CVS.

    Recording may studder some for now, I have to work that out

    If you want to use something other than hw:0 for your
    device, run rezound once, then exit. Then edit
    ~/.rezound/registry.dat to and ALSAOutputDevice to whatever
    you like.

    Hope this helps.



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

Sign up for the SourceForge newsletter:

No, thanks