mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
update ALSA backend: separate playback/capture periods
fixed: 2 for capture, configurable 2,3 for playback.
This commit is contained in:
parent
b5c5b7e493
commit
a6f27f09a7
3 changed files with 28 additions and 20 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue