![]() |
![]() |
![]() |
Convert an error code to a string
#include <sys/asoundlib.h> const char * snd_strerror( int errnum );
libasound.so
The snd_strerror() function converts an error code to a string. Its functionality is the same as the strerror() function from the standard C library however, it also returns the correct strings for sound error codes.
A pointer to the error message. Don't modify this string it points to.
See the example in Opening your audio device in the Playing audio data chapter.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |