| 7745 | } |
| 7746 | |
| 7747 | static 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 |
no outgoing calls
no test coverage detected