update ALSA backend: separate playback/capture periods

fixed: 2 for capture,  configurable 2,3 for playback.
This commit is contained in:
Robin Gareus 2015-12-05 00:46:36 +01:00
parent b5c5b7e493
commit a6f27f09a7
3 changed files with 28 additions and 20 deletions

View file

@ -875,7 +875,10 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
_pcmi = new Alsa_pcmi (
(duplex & 2) ? alsa_device.c_str() : NULL,
(duplex & 1) ? alsa_device.c_str() : NULL,
0, _samplerate, _samples_per_period, _periods_per_cycle, 0);
/* ctrl name */ 0,
_samplerate, _samples_per_period,
_periods_per_cycle, /* _periods_per_cycle */ 2,
/* debug */ 0);
AudioBackend::ErrorCode error_code = NoError;
switch (_pcmi->state()) {