MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / getAsioErrorString

Function getAsioErrorString

examples/TinyAudio/RtAudio.cpp:3998–4020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3996}
3997
3998static 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

Callers 4

getDeviceInfoMethod · 0.85
probeDeviceOpenMethod · 0.85
startStreamMethod · 0.85
stopStreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected