Retrieves the error code for the most recent BASS function call in the current thread.
int BASS_ErrorGetCode();
Error codes are stored for each thread. So if you happen to call 2 or more BASS functions at the same time, they will not interfere with each other's error codes.
| 0 | BASS_OK |
| 1 | BASS_ERROR_MEM |
| 2 | BASS_ERROR_FILEOPEN |
| 3 | BASS_ERROR_DRIVER |
| 4 | BASS_ERROR_BUFLOST |
| 5 | BASS_ERROR_HANDLE |
| 6 | BASS_ERROR_FORMAT |
| 7 | BASS_ERROR_POSITION |
| 8 | BASS_ERROR_INIT |
| 9 | BASS_ERROR_START |
| 10 | BASS_ERROR_SSL |
| 11 | BASS_ERROR_REINIT |
| 14 | BASS_ERROR_ALREADY |
| 17 | BASS_ERROR_NOTAUDIO |
| 18 | BASS_ERROR_NOCHAN |
| 19 | BASS_ERROR_ILLTYPE |
| 20 | BASS_ERROR_ILLPARAM |
| 21 | BASS_ERROR_NO3D |
| 22 | BASS_ERROR_NOEAX |
| 23 | BASS_ERROR_DEVICE |
| 24 | BASS_ERROR_NOPLAY |
| 25 | BASS_ERROR_FREQ |
| 27 | BASS_ERROR_NOTFILE |
| 29 | BASS_ERROR_NOHW |
| 31 | BASS_ERROR_EMPTY |
| 32 | BASS_ERROR_NONET |
| 33 | BASS_ERROR_CREATE |
| 34 | BASS_ERROR_NOFX |
| 37 | BASS_ERROR_NOTAVAIL |
| 38 | BASS_ERROR_DECODE |
| 39 | BASS_ERROR_DX |
| 40 | BASS_ERROR_TIMEOUT |
| 41 | BASS_ERROR_FILEFORM |
| 42 | BASS_ERROR_SPEAKER |
| 43 | BASS_ERROR_VERSION |
| 44 | BASS_ERROR_CODEC |
| 45 | BASS_ERROR_ENDED |
| 46 | BASS_ERROR_BUSY |
| 47 | BASS_ERROR_UNSTREAMABLE |
| 48 | BASS_ERROR_PROTOCOL |
| 49 | BASS_ERROR_DENIED |
| 50 | BASS_ERROR_FREEING |
| 51 | BASS_ERROR_CANCEL |
| 500 | BASS_ERROR_JAVA_CLASS |
| -1 | BASS_ERROR_UNKNOWN |