mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
Use translated error messages in PortaudioBackend when SR or i/o channel counts don't match requested
These errors are probably preventable but currently they do occur so at least tell the user about them(and hope they check the error log window)
This commit is contained in:
parent
ba4f685d2d
commit
71a1e9e90d
1 changed files with 3 additions and 3 deletions
|
|
@ -469,12 +469,12 @@ PortAudioBackend::_start (bool for_latency_measurement)
|
|||
|
||||
if (_n_outputs != _pcmio->n_playback_channels ()) {
|
||||
_n_outputs = _pcmio->n_playback_channels ();
|
||||
PBD::info << _("PortAudioBackend: adjusted output channel count to match device.") << endmsg;
|
||||
PBD::info << get_error_string(OutputChannelCountNotSupportedError) << endmsg;
|
||||
}
|
||||
|
||||
if (_n_inputs != _pcmio->n_capture_channels ()) {
|
||||
_n_inputs = _pcmio->n_capture_channels ();
|
||||
PBD::info << _("PortAudioBackend: adjusted input channel count to match device.") << endmsg;
|
||||
PBD::info << get_error_string(InputChannelCountNotSupportedError) << endmsg;
|
||||
}
|
||||
#if 0
|
||||
if (_pcmio->samples_per_period() != _samples_per_period) {
|
||||
|
|
@ -486,7 +486,7 @@ PortAudioBackend::_start (bool for_latency_measurement)
|
|||
if (_pcmio->sample_rate() != _samplerate) {
|
||||
_samplerate = _pcmio->sample_rate();
|
||||
engine.sample_rate_change (_samplerate);
|
||||
PBD::warning << _("PortAudioBackend: sample rate does not match.") << endmsg;
|
||||
PBD::warning << get_error_string(SampleRateNotSupportedError) << endmsg;
|
||||
}
|
||||
|
||||
_measure_latency = for_latency_measurement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue