BASS_ErrorGetCode

Retrieves the error code for the most recent BASS function call in the current thread.

int BASS_ErrorGetCode();

Return value

If no error occurred during the last BASS function call then BASS_OK is returned, else one of the BASS_ERROR values is returned. See the function description for an explanation of what the error code means.

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.

Error codes list

0BASS_OK
1BASS_ERROR_MEM
2BASS_ERROR_FILEOPEN
3BASS_ERROR_DRIVER
4BASS_ERROR_BUFLOST
5BASS_ERROR_HANDLE
6BASS_ERROR_FORMAT
7BASS_ERROR_POSITION
8BASS_ERROR_INIT
9BASS_ERROR_START
10BASS_ERROR_SSL
11BASS_ERROR_REINIT
14BASS_ERROR_ALREADY
17BASS_ERROR_NOTAUDIO
18BASS_ERROR_NOCHAN
19BASS_ERROR_ILLTYPE
20BASS_ERROR_ILLPARAM
21BASS_ERROR_NO3D
22BASS_ERROR_NOEAX
23BASS_ERROR_DEVICE
24BASS_ERROR_NOPLAY
25BASS_ERROR_FREQ
27BASS_ERROR_NOTFILE
29BASS_ERROR_NOHW
31BASS_ERROR_EMPTY
32BASS_ERROR_NONET
33BASS_ERROR_CREATE
34BASS_ERROR_NOFX
37BASS_ERROR_NOTAVAIL
38BASS_ERROR_DECODE
39BASS_ERROR_DX
40BASS_ERROR_TIMEOUT
41BASS_ERROR_FILEFORM
42BASS_ERROR_SPEAKER
43BASS_ERROR_VERSION
44BASS_ERROR_CODEC
45BASS_ERROR_ENDED
46BASS_ERROR_BUSY
47BASS_ERROR_UNSTREAMABLE
48BASS_ERROR_PROTOCOL
49BASS_ERROR_DENIED
-1BASS_ERROR_UNKNOWN
Add-ons may introduce additional error codes.