3 ms·
I'm not sure if it is entirely fair to criticise alsa for lacking (g)ui -- after all there was a major shift to pulse audio, and pretty much all relevant ui pro
by e12e 13y ago
I'm not sure if it is entirely fair to criticise alsa for lacking (g)ui -- after all there was a major shift to pulse audio, and pretty much all relevant ui projects (eg: gnome) basically went: use pulse or forget about easily switching audio i/o. It has very little to with alsa "as such". After finally tiring of how pulse-audio kept introducing lag and skips in my audio, I found alsa-heaven with:
$ cat ~.asoundrc
pcm.nvidia { type hw; card NVidia; }
ctl.nvidia { type hw; card NVidia; }
pcm.usb { type hw; card DAC; }
ctl.usb { type hw; card DAC; }
#pcm.!default pcm.usb
ctl.!default ctl.usb
#dmix for software mixing? http://alsa.opensrc.org/Dmix
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1024 # Must be unique
slave {
pcm "hw:DAC"
}
}
Note that my usb dac doesn't do hardware mixing, but alsa handles that fine (I can watch a movie and play audio at the same time, yai!).
In general I feel that Linux audio seems worse now than in the 1.3 days -- but I'm not sure easy gui of pulse audio makes up for crappy resource utilization and general complexity of piping some binary data to a /dev/audio device.
I'd low to see something like jack with a easy-to-use ui and soft realtime (and optional network transparency) -- but right now it seems a little to hard to use for me (but that could be my usb dac that isn't quite a sound card, and reportedly has pretty crappy (alsa) drivers).
- darklajid 13y agoYou know more about alsa than I do. Can you, with this setup: - reduce single input streams (mute that one flash video) in volume? - can you switch between usb and internal card without restarting an application? Use case: You're playing a game, wife enters the room, requests that you put on headphones. Trivial with PA (even with USB headphones), what about your pure alsa workflow?
- e12e 13y ago> reduce single input streams (mute that one flash video) in volume Not easily, as far as I know. What is the use-case for this, btw? Muting flash on sites other than youtube and the like (as youtube has a volume control for every video)? I use noscript and flashblock -- so I generally only see (hear) flash I want. > switch between usb and internal card without restarting an application? I haven't tried (no need -- I only use my dac for audio). Alsamixer allows you to set volume for each device, so perhaps one could set up a virtual device so that audio goes to both cards by default, and then you could mute one or the other there? Take a look at this thing I found: http://slack4dummies.blogspot.no/2012/02/alsa-multiple-output-multiple-sound.html http://slack4dummies.blogspot.no/2012/02/alsa-multiple-outpu... [edit: For switching outputs/cards "manually" via using separate .asoundrc files, not the guide linked above] I think restarting audio is enough (but that would typically not help for games, but should be fine for video (stop-start playback). [edit2: The app needs to close the audio device for such manual shifting to work -- YMMV] I only ended up with this after enough frustration with pa that I went and looked up how to do (basic) alsa config. The documentation could benefit from more (hand holding) guides, and a proper (g)ui wouldn't hurt. But when you see it as a list of inputs and outputs (both plugins and devices) -- slaves and masters -- most setups are possible.
- IE5point5 13y agoNo way should people be doing this in 2014