Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

const char * MidiDriver::getErrorName ( int  error_code  )  [static, inherited]

Retrieve a string representation of an error code.

Definition at line 78 of file mpu401.cpp.

      static const char *const midi_errors[] = {
            "No error",
            "Cannot connect",
            "Streaming not available",
            "Device not available",
            "Driver already open"

      if ((uint)error_code >= ARRAYSIZE(midi_errors))
            return "Unknown Error";
      return midi_errors[error_code];

Generated by  Doxygen 1.6.0   Back to index