Handle padding between device sample frames
commit2e6a55a87ce24a9303c3039609b41fb0eb302483
authorChris Robinson <chris.kcat@gmail.com>
Sun, 22 Dec 2019 04:43:46 +0000 (21 20:43 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sun, 22 Dec 2019 04:43:46 +0000 (21 20:43 -0800)
treef3bb706cac1689ac9233da4bdd78a9530b5c078a
parentc2ca617ed60e26878a6ac10aaf0dc644b6a24d29
Handle padding between device sample frames

The padding must be constant and sample type aligned (e.g. some fixed multiple
of two bytes between the start of two consecutive frames for 16-bit output).
The intent is to always have the ability for stereo output with WASAPI even if
the device has some other unsupported configuration, as long as front-left and
front-right exist.
18 files changed:
alc/alc.cpp
alc/alu.cpp
alc/alu.h
alc/backends/alsa.cpp
alc/backends/coreaudio.cpp
alc/backends/dsound.cpp
alc/backends/jack.cpp
alc/backends/null.cpp
alc/backends/opensl.cpp
alc/backends/oss.cpp
alc/backends/portaudio.cpp
alc/backends/pulseaudio.cpp
alc/backends/sdl2.cpp
alc/backends/sndio.cpp
alc/backends/solaris.cpp
alc/backends/wasapi.cpp
alc/backends/wave.cpp
alc/backends/winmm.cpp