after being converted from float as passed by firefox/libcubeb [2]
- Restore behavior from r296140 while adding alignment options in case
of issues. This should make things slightly less broken and add more
sample formats. [1]
- Some apps (e.g. linux-firefox with ports/169896) don't check with ALSA
which sample formats are supported and just feed whatever they like,
assuming the underlying device supports it.
While here also fix mixer device for OSS plugin. It should be /dev/dsp
according to 4Front OSS wiki. The only works with ARIFF_OSS enabled
but the volume is reset on close(). audio/oss doesn't work either way:
the new (OSSv4) way to control mixer is via SNDCTL_MIX_* ioctls. [2]
PR: ports/183861 [1]
PR: ports/184006 [2]
Submitted by: Jan Beich <jbeich@tormail.org>
Approved by: maintainer timeout