alsa-0.4: Binding to the ALSA Library API.

Sound.Alsa.Error

Synopsis

Documentation

catchAlsa :: IO a -> (AlsaException -> IO a) -> IO aSource

catchAlsaErrnoSource

Arguments

:: Errno 
-> IO a

Action

-> IO a

Handler

-> IO a 

catchXRunSource

Arguments

:: IO a

Action

-> IO a

Handler

-> IO a 

rethrowAlsaExceptions :: IO a -> IO aSource

Converts any AlsaException into an IOError. This produces better a error message than letting an uncaught AlsaException propagate to the top.

strerror :: Errno -> IO StringSource

Returns the message for an error code.