nuc wrote:ALSA emulation is not a proper solution.
This seems to be a kind of "understatement"
http://en.wikipedia.org/wiki/Understatementhttp://en.wikipedia.org/wiki/How_to_be_an_Alien http://f2.org/humour/howalien.html#Soul"ALSA emulation" is rather a perfect example of
absolute stupidity.It might be obvious that ALSA performs better than ALSA emulation.
You can easily switch from OSS4 to ALSA (and from ALSA to OSS4) in a few seconds through the help of a simple script (without reboot and without reinstallation of anything).
WARNING: The OSS4 developers do not like such scripts for understandable reasons. The same is true for ALSA developers.
If you feel very experimental, you may try to load/unload ALSA
- Code: Select all
$ apt-cache search alsa-base
alsa-base - ALSA driver configuration files
$ sudo apt-get install alsa-base
$ dpkg --search /sbin/alsa
alsa-base: /sbin/alsa
$ whereis alsa
alsa: /sbin/alsa /usr/share/alsa
$ alsa --help
Usage: /sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume}
[EXAMPLE]:
$ sudo alsa unload
$ lsmod | grep snd
Do not forget to remove sound applet from panel, for it may prevent unloading ALSA modules.
See also:
viewtopic.php?f=3&t=5204The outdated manual with scripts is here:
viewtopic.php?f=3&t=3981To unload OSS4, you can use these commands:
- Code: Select all
$ sudo /usr/lib/oss/scripts/killprocs.sh
$ sudo soundoff
nuc wrote: I installed Opera and yes sound works for HTML5 vids

. I think it's because Opera uses gstreamer.
Opera does not use gstreamer.This can be verified with a simple test:
- Code: Select all
$ sudo mv libgstoss4audio.so libgstoss4audio.so-copy2
This command disables the OSS4 gstreamer plugin, but sound still works with Opera/HTML5 and OSS4.
It seems that Opera has its own implementation of OSS4 like many other multi-media applications: MPlayer, DeadBeef, Audacious, etc. It seems to be the best way of doing things on Linux. Petrov's OSS4 plugin for DeadBeef is a good example.
nuc wrote: Why do Firefox and Chrome ...
Firefox and Chrome have been always buggy. The problem is that semi-deaf PulseALSA developers can only produce "very advanced open-source crap" and nothing more.