Previous Next Table of Contents

2. Error Codes

All functions return int (or some sort of signed value). If this value is negative it represents an error code. Codes up to SND_ERROR_BEGIN (500000) represents standard system errors. Codes equal or greather than this value represents sound library API errors. All error codes begin with the prefix SND_ERROR_.

2.1 Error Codes in Detail

SND_ERROR_UNCOMPATIBLE_VERSION (500000)

This error is caused if the driver uses an incompatible kernel API for this interface and hence the library doesn't know how this API can be used.

2.2 Functions

const char *snd_strerror( int errnum )

This functions converts error code to a string. Its functionality is the same as the strerror function from the standard C library, but this function returns correct strings for sound error codes, too.


Previous Next Table of Contents