summaryrefslogtreecommitdiff
path: root/libs/backends/portaudio/portaudio_backend.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-08-23 11:29:00 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-09-02 12:07:14 +1000
commit432e0073f6d8a91edb213e535c47a7e4ff686284 (patch)
tree929cdf6e3a778265f18068444aae67cbace205d4 /libs/backends/portaudio/portaudio_backend.cc
parent9185978d2ffbd6aa30762e14cb5634d545000886 (diff)
Convert some error output to debug output in PortaudioBackend
Diffstat (limited to 'libs/backends/portaudio/portaudio_backend.cc')
-rw-r--r--libs/backends/portaudio/portaudio_backend.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/libs/backends/portaudio/portaudio_backend.cc b/libs/backends/portaudio/portaudio_backend.cc
index 56e02fb34a..6eab632395 100644
--- a/libs/backends/portaudio/portaudio_backend.cc
+++ b/libs/backends/portaudio/portaudio_backend.cc
@@ -437,12 +437,13 @@ PortAudioBackend::_start (bool for_latency_measurement)
}
if (_active || _run) {
- PBD::error << _("PortAudioBackend: already active.") << endmsg;
+ DEBUG_AUDIO("Already active.\n");
return -1;
}
if (_ports.size()) {
- PBD::warning << _("PortAudioBackend: recovering from unclean shutdown, port registry is not empty.") << endmsg;
+ DEBUG_AUDIO(
+ "Recovering from unclean shutdown, port registry is not empty.\n");
_system_inputs.clear();
_system_outputs.clear();
_system_midi_in.clear();
@@ -536,7 +537,7 @@ PortAudioBackend::_start (bool for_latency_measurement)
{
if (pthread_create (&_main_thread, NULL, pthread_process, this))
{
- PBD::error << _("PortAudioBackend: failed to create process thread.") << endmsg;
+ DEBUG_AUDIO("Failed to create main audio thread\n");
_run = false;
return -1;
} else {
@@ -548,7 +549,7 @@ PortAudioBackend::_start (bool for_latency_measurement)
while (!_active && --timeout > 0) { Glib::usleep (1000); }
if (timeout == 0 || !_active) {
- PBD::error << _("PortAudioBackend: failed to start.") << endmsg;
+ DEBUG_AUDIO("Failed to start main audio thread\n");
_pcmio->pcm_stop();
_run = false;
unregister_ports();
@@ -569,7 +570,7 @@ PortAudioBackend::stop ()
_run = false;
if (pthread_join (_main_thread, &status)) {
- PBD::error << _("PortAudioBackend: failed to terminate.") << endmsg;
+ DEBUG_AUDIO("Failed to stop main audio thread\n");
return -1;
}
@@ -692,7 +693,7 @@ PortAudioBackend::create_process_thread (boost::function<void()> func)
pthread_attr_init (&attr);
pthread_attr_setstacksize (&attr, stacksize);
if (pthread_create (&thread_id, &attr, portaudio_process_thread, td)) {
- PBD::error << _("AudioEngine: cannot create process thread.") << endmsg;
+ DEBUG_AUDIO("Cannot create process thread.");
pthread_attr_destroy (&attr);
return -1;
}
@@ -712,7 +713,7 @@ PortAudioBackend::join_process_threads ()
{
void *status;
if (pthread_join (*i, &status)) {
- PBD::error << _("AudioEngine: cannot terminate process thread.") << endmsg;
+ DEBUG_AUDIO("Cannot terminate process thread.");
rv -= 1;
}
}