BASS_ERROR_UNKNOWN

Using a big BASS buffer (2 seconds for example) can lead to MediaPortal crashing.

Different devices and drivers can have differing maximum buffer lengths. If the BASS_WASAPI_Init "buffer" parameter exceeds that, it will currently result in a BASS_ERROR_UNKNOWN error. MediaPortal 1.6 adds a more specific error code.

The following new error code will result from the driver stating that the requested buffer is too large:

#define BASS_ERROR_WASAPI_BUFFER 5001

If you get that error from a BASS_WASAPI_Init call, you can try again with a lower "buffer" parameter.