ao/openal: Add option to set buffering characteristics

One can now set the number of buffers and the buffer size.
This can reduce the CPU usage and the total latency stays mostly the same.
As there are sync mechanisms the A/V sync continue intact and working.

It also modifies 6.1 channel order, as per OpenAL spec
and add AOPLAY_FINAL_CHUNK support
This commit is contained in:
LAGonauta
2018-04-01 10:26:45 -03:00
committed by Jan Ekström
parent 567df04012
commit 614ad62f89
2 changed files with 70 additions and 23 deletions

View File

@@ -112,6 +112,14 @@ Available audio output drivers are:
``openal``
Experimental OpenAL audio output driver
``--openal-num-buffers=<2-128>``
Specify the number of audio buffers to use. Lower values are better for
lower CPU usage. Default: 4.
``--openal-num-samples=<256-32768>``
Specify the number of complete samples to use for each buffer. Higher
values are better for lower CPU usage. Default: 8192.
``--openal-direct-channels=<yes|no>``
Enable OpenAL Soft's direct channel extension when available to avoid
tinting the sound with ambisonics or HRTF.