mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
ALSA: Use same period for in+out #8075
Since the input is never flushed, capture latency is still only one cycle.
This commit is contained in:
parent
e9401934c1
commit
4ff6fbe6b8
1 changed files with 2 additions and 2 deletions
|
|
@ -282,7 +282,7 @@ AlsaAudioBackend::available_period_sizes (const std::string& driver, const std::
|
||||||
if (nfo->max_nper > 2) {
|
if (nfo->max_nper > 2) {
|
||||||
ps.push_back (3);
|
ps.push_back (3);
|
||||||
}
|
}
|
||||||
if (nfo->max_nper > 3) {
|
if (nfo->min_nper > 3) {
|
||||||
ps.push_back (nfo->min_nper);
|
ps.push_back (nfo->min_nper);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -853,7 +853,7 @@ AlsaAudioBackend::_start (bool for_latency_measurement)
|
||||||
(duplex & 1) ? alsa_device.c_str() : NULL,
|
(duplex & 1) ? alsa_device.c_str() : NULL,
|
||||||
/* ctrl name */ 0,
|
/* ctrl name */ 0,
|
||||||
_samplerate, _samples_per_period,
|
_samplerate, _samples_per_period,
|
||||||
_periods_per_cycle, /* capture p/c */ 2,
|
_periods_per_cycle, _periods_per_cycle,
|
||||||
/* debug */ 0);
|
/* debug */ 0);
|
||||||
|
|
||||||
AudioBackend::ErrorCode error_code = NoError;
|
AudioBackend::ErrorCode error_code = NoError;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue