22 #include <alsa/asoundlib.h> 25 #define ALSA_PCM_NOT_OPEN_ERROR -1+ALSA_ERROR_OFFSET 26 #define ALSA_UNKNOWN_READ_ERROR -2+ALSA_ERROR_OFFSET 27 #define ALSA_FULLDUPLEX_PROCESS_ERROR -3+ALSA_ERROR_OFFSET 28 #define ALSA_FRAME_MISMATCH_ERROR -4+ALSA_ERROR_OFFSET 29 #define ALSA_NO_CHANNELS_ERROR -5+ALSA_ERROR_OFFSET 30 #define ALSA_YOUR_PROCESS_FN_ERROR -6+ALSA_ERROR_OFFSET 31 #define ALSA_FORMAT_MISMATCH_ERROR -7+ALSA_ERROR_OFFSET 32 #define ALSA_MIXER_NOT_OPEN_ERROR -8+ALSA_ERROR_OFFSET 33 #define ALSA_MIXER_QUERY_ERROR -9+ALSA_ERROR_OFFSET 34 #define ALSA_MIXER_FIND_ELEMENT_ERROR -10+ALSA_ERROR_OFFSET 35 #define ALSA_MIXER_WRONG_ELEMENT_ERROR -11+ALSA_ERROR_OFFSET 36 #define ALSA_MIXER_NO_CHANNEL_ERROR -12+ALSA_ERROR_OFFSET 37 #define ALSA_MIXER_NO_PLAYBACK_VOL_ERROR -13+ALSA_ERROR_OFFSET 38 #define ALSA_MIXER_NO_CAPTURE_VOL_ERROR -13+ALSA_ERROR_OFFSET 39 class ALSADebug : public Debug { 62 std::cout<<errorNum<<std::endl;
64 fprintf(stderr,
"%s ", snd_strerror(errorNum));
#define ALSA_FRAME_MISMATCH_ERROR
error when frame sizes are incorrect
#define ALSA_MIXER_NOT_OPEN_ERROR
error when mixer pointer is null
#define MAX_ERROR_OFFSET
The lowest debug error magnitude from gtkiostream.
#define ALSA_FORMAT_MISMATCH_ERROR
error when comparing bits sizes of two words
virtual int evaluateError(int errorNum)
#define ALSA_YOUR_PROCESS_FN_ERROR
error when calling the user's process function
#define ALSA_MIXER_NO_CHANNEL_ERROR
error when we can't find the prescribed channel
virtual int evaluateError(int errorNum)
virtual int evaluateError(int errorNum, std::string append)
#define ALSA_MIXER_QUERY_ERROR
error when attempting to query the mixer
#define ALSA_PCM_NOT_OPEN_ERROR
error when pcm pointer is null
#define ALSA_MIXER_NO_CAPTURE_VOL_ERROR
error this mixer element is not a playback element
#define ALSA_MIXER_FIND_ELEMENT_ERROR
error when trying to find a mixer element
#define ALSA_MIXER_NO_PLAYBACK_VOL_ERROR
error this mixer element is not a playback element
#define MIN_ERROR_OFFSET
The highest debug error magnitude from gtkiostream.
#define ALSA_NO_CHANNELS_ERROR
error when channel cnt is zero
#define ALSA_UNKNOWN_READ_ERROR
error when reading and an unknown code is retured
#define ALSA_MIXER_WRONG_ELEMENT_ERROR
error when comparing two mixer elements.
bool noChannelError(int val)
#define ALSA_FULLDUPLEX_PROCESS_ERROR
error when processing the full duplex method.