| 7408 | } |
| 7409 | |
| 7410 | static const char *getErrorString(int code) |
| 7411 | { |
| 7412 | switch (code) |
| 7413 | { |
| 7414 | case DSERR_ALLOCATED: |
| 7415 | return "Already allocated"; |
| 7416 | |
| 7417 | case DSERR_CONTROLUNAVAIL: |
| 7418 | return "Control unavailable"; |
| 7419 | |
| 7420 | case DSERR_INVALIDPARAM: |
| 7421 | return "Invalid parameter"; |
| 7422 | |
| 7423 | case DSERR_INVALIDCALL: |
| 7424 | return "Invalid call"; |
| 7425 | |
| 7426 | case DSERR_GENERIC: |
| 7427 | return "Generic error"; |
| 7428 | |
| 7429 | case DSERR_PRIOLEVELNEEDED: |
| 7430 | return "Priority level needed"; |
| 7431 | |
| 7432 | case DSERR_OUTOFMEMORY: |
| 7433 | return "Out of memory"; |
| 7434 | |
| 7435 | case DSERR_BADFORMAT: |
| 7436 | return "The sample rate or the channel format is not supported"; |
| 7437 | |
| 7438 | case DSERR_UNSUPPORTED: |
| 7439 | return "Not supported"; |
| 7440 | |
| 7441 | case DSERR_NODRIVER: |
| 7442 | return "No driver"; |
| 7443 | |
| 7444 | case DSERR_ALREADYINITIALIZED: |
| 7445 | return "Already initialized"; |
| 7446 | |
| 7447 | case DSERR_NOAGGREGATION: |
| 7448 | return "No aggregation"; |
| 7449 | |
| 7450 | case DSERR_BUFFERLOST: |
| 7451 | return "Buffer lost"; |
| 7452 | |
| 7453 | case DSERR_OTHERAPPHASPRIO: |
| 7454 | return "Another application already has priority"; |
| 7455 | |
| 7456 | case DSERR_UNINITIALIZED: |
| 7457 | return "Uninitialized"; |
| 7458 | |
| 7459 | default: |
| 7460 | return "DirectSound unknown error"; |
| 7461 | } |
| 7462 | } |
| 7463 | //******************** End of __WINDOWS_DS__ *********************// |
| 7464 | #endif |
| 7465 |
no outgoing calls
no test coverage detected