23#include <alsa/asoundlib.h>
53 qDebug() <<
"Error code:" << rc <<
"(" << snd_strerror(rc) <<
")";
54 qDebug() <<
"Location:" << where;
70 qWarning() <<
"Exception code:" << rc <<
"(" << snd_strerror(rc) <<
")";
71 qWarning() <<
"Location:" << where;
80#define DRUMSTICK_ALSA_CHECK_ERROR(x) (checkErrorAndThrow((x),__PRETTY_FUNCTION__))
86#define DRUMSTICK_ALSA_CHECK_WARNING(x) (checkWarning((x),__PRETTY_FUNCTION__))
Exception class for ALSA Sequencer errors.
int checkWarning(int rc, const char *where)
Check the error code for warning errors.
int checkErrorAndThrow(int rc, const char *where)
Checks the error code for severe errors.
SequencerError Exception class.