MCPcopy Create free account
hub / github.com/LabSound/LabSound / getErrorString

Function getErrorString

src/backends/RtAudio/RtAudio.cpp:7747–7800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7745}
7746
7747static const char * getErrorString(int code)
7748{
7749 switch (code)
7750 {
7751
7752 case DSERR_ALLOCATED:
7753 return "Already allocated";
7754
7755 case DSERR_CONTROLUNAVAIL:
7756 return "Control unavailable";
7757
7758 case DSERR_INVALIDPARAM:
7759 return "Invalid parameter";
7760
7761 case DSERR_INVALIDCALL:
7762 return "Invalid call";
7763
7764 case DSERR_GENERIC:
7765 return "Generic error";
7766
7767 case DSERR_PRIOLEVELNEEDED:
7768 return "Priority level needed";
7769
7770 case DSERR_OUTOFMEMORY:
7771 return "Out of memory";
7772
7773 case DSERR_BADFORMAT:
7774 return "The sample rate or the channel format is not supported";
7775
7776 case DSERR_UNSUPPORTED:
7777 return "Not supported";
7778
7779 case DSERR_NODRIVER:
7780 return "No driver";
7781
7782 case DSERR_ALREADYINITIALIZED:
7783 return "Already initialized";
7784
7785 case DSERR_NOAGGREGATION:
7786 return "No aggregation";
7787
7788 case DSERR_BUFFERLOST:
7789 return "Buffer lost";
7790
7791 case DSERR_OTHERAPPHASPRIO:
7792 return "Another application already has priority";
7793
7794 case DSERR_UNINITIALIZED:
7795 return "Uninitialized";
7796
7797 default:
7798 return "DirectSound unknown error";
7799 }
7800}
7801//******************** End of __WINDOWS_DS__ *********************//
7802#endif
7803

Callers 6

getDeviceCountMethod · 0.85
getDeviceInfoMethod · 0.85
probeDeviceOpenMethod · 0.85
startStreamMethod · 0.85
stopStreamMethod · 0.85
callbackEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected