| 3996 | } |
| 3997 | |
| 3998 | static const char *getAsioErrorString(ASIOError result) |
| 3999 | { |
| 4000 | struct Messages |
| 4001 | { |
| 4002 | ASIOError value; |
| 4003 | const char *message; |
| 4004 | }; |
| 4005 | |
| 4006 | static const Messages m[] = |
| 4007 | { |
| 4008 | {ASE_NotPresent, "Hardware input or output is not present or available."}, |
| 4009 | {ASE_HWMalfunction, "Hardware is malfunctioning."}, |
| 4010 | {ASE_InvalidParameter, "Invalid input parameter."}, |
| 4011 | {ASE_InvalidMode, "Invalid mode."}, |
| 4012 | {ASE_SPNotAdvancing, "Sample position not advancing."}, |
| 4013 | {ASE_NoClock, "Sample clock or rate cannot be determined or is not present."}, |
| 4014 | {ASE_NoMemory, "Not enough memory to complete the request."}}; |
| 4015 | |
| 4016 | for (unsigned int i = 0; i < sizeof(m) / sizeof(m[0]); ++i) |
| 4017 | if (m[i].value == result) return m[i].message; |
| 4018 | |
| 4019 | return "Unknown error."; |
| 4020 | } |
| 4021 | |
| 4022 | //******************** End of __WINDOWS_ASIO__ *********************// |
| 4023 | #endif |
no outgoing calls
no test coverage detected