enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / ardour / audio_backend.cc
index 225b64dbf18a749822fca889e49e17ef6b24d475..930eb416bd0dd9239493712bca93690c901492ad 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "ardour/audio_backend.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 namespace ARDOUR {
 
@@ -33,10 +33,14 @@ AudioBackend::get_error_string (ErrorCode error_code)
                return _("Failed to initialize audio backend");
        case BackendDeinitializationError:
                return _("Failed to deinitialize audio backend");
+       case BackendReinitializationError:
+               return _("Failed to reinitialize audio backend");
        case AudioDeviceOpenError:
                return _("Failed to open audio device");
        case AudioDeviceCloseError:
                return _("Failed to close audio device");
+       case AudioDeviceInvalidError:
+               return _("Audio device not valid");
        case AudioDeviceNotAvailableError:
                return _("Audio device unavailable");
        case AudioDeviceNotConnectedError:
@@ -55,6 +59,8 @@ AudioBackend::get_error_string (ErrorCode error_code)
                return _("MIDI device not connected");
        case MidiDeviceIOError:
                return _("MIDI device Input/Output error");
+       case SampleFormatNotSupportedError:
+               return _("Sample format is not supported");
        case SampleRateNotSupportedError:
                return _("Sample rate is not supported");
        case RequestedInputLatencyNotSupportedError:
@@ -67,6 +73,8 @@ AudioBackend::get_error_string (ErrorCode error_code)
                return _("Period count is not supported");
        case DeviceConfigurationNotSupportedError:
                return _("Device configuration not supported");
+       case ChannelCountNotSupportedError:
+               return _("Channel count configuration not supported");
        case InputChannelCountNotSupportedError:
                return _("Input channel count configuration not supported");
        case OutputChannelCountNotSupportedError:
@@ -77,8 +85,18 @@ AudioBackend::get_error_string (ErrorCode error_code)
                return _("Setting audio device thread priorities failed");
        case SettingMIDIThreadPriorityError:
                return _("Setting MIDI device thread priorities failed");
+       case ProcessThreadStartError:
+               return _("Failed to start process thread");
+       case FreewheelThreadStartError:
+               return _("Failed to start freewheel thread");
+       case PortRegistrationError:
+               return _("Failed to register audio/midi ports");
+       case PortReconnectError:
+               return _("Failed to re-connect audio/midi ports");
+       case OutOfMemoryError:
+               return _("Out Of Memory Error");
        }
-       return std::string();
+       return _("Could not reconnect to Audio/MIDI engine");
 }
 
 std::string