Fix ALSA available buffersize detection:
authorRobin Gareus <robin@gareus.org>
Wed, 24 Jul 2019 14:29:59 +0000 (16:29 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 24 Jul 2019 14:40:32 +0000 (16:40 +0200)
commit0fe3cba8b131ca1196ef30c0ccb5acb914817276
tree5b826a8f881addf6a334306b955b315bd602100c
parent31ec8ce7d18e36d3c765beeb0445eb946373addf
Fix ALSA available buffersize detection:

buffer-size = periods * period-size

Previously, buffersize was used for period-size.

This fixes an issue with a dedicated .asoundrc configuring a specific
period-size or buffer-size that has to be exact.
Ardour's device configuration failed in this case.

This has not been an issues since most hardware devices offer a wide
range: 8 < period-size < 262144 ; 16 < buffer-size < 524288.
Only a subset of which (32 .8192) is allowed by Ardour.
libs/ardouralsautil/deviceparams.cc