Lines Matching refs:err
42 const char* getErrorStr(INT32 err) {
43 return snd_strerror((int) err);
64 int err;
77 err = snd_rawmidi_open(&rawmidi, NULL, ALSA_DEFAULT_DEVICE_NAME,
80 err = snd_rawmidi_open(NULL, &rawmidi, ALSA_DEFAULT_DEVICE_NAME,
85 err = MIDI_INVALID_ARGUMENT;
87 if (err < 0) {
89 snd_strerror(err));
91 err = snd_rawmidi_info(rawmidi, rawmidi_info);
94 if (err < 0) {
96 snd_strerror(err));
126 err = snd_ctl_open(&handle, devname, SND_CTL_NONBLOCK);
127 if (err < 0) {
128 ERROR2("ERROR: snd_ctl_open, card=%d: %s\n", card, snd_strerror(err));
131 err = snd_ctl_card_info(handle, card_info);
132 if (err < 0) {
133 ERROR2("ERROR: snd_ctl_card_info, card=%d: %s\n", card, snd_strerror(err));
148 err = snd_ctl_rawmidi_info(handle, rawmidi_info);
150 if (err < 0) {
151 if (err != -ENOENT) {
152 ERROR2("ERROR: snd_ctl_rawmidi_info, card=%d: %s", card, snd_strerror(err));
374 int err;
392 err = getMidiDeviceID(direction, deviceIndex, &deviceID);
400 err = snd_rawmidi_open(&native_handle, NULL, devicename,
403 err = snd_rawmidi_open(NULL, &native_handle, devicename,
407 err = MIDI_INVALID_ARGUMENT;
409 if (err < 0) {
410 ERROR1("< ERROR: openMidiDevice(): snd_rawmidi_open() returned %d\n", err);
413 return err;
419 err = snd_rawmidi_nonblock(native_handle, 0);
420 if (err < 0) {
421 ERROR1(" ERROR: openMidiDevice(): snd_rawmidi_nonblock() returned %d\n", err);
425 return err;
429 err = snd_midi_event_new(EVENT_PARSER_BUFSIZE, &event_parser);
430 if (err < 0) {
431 ERROR1(" ERROR: openMidiDevice(): snd_midi_event_new() returned %d\n", err);
435 return err;
443 return err;
449 int err;
460 err = snd_rawmidi_close((snd_rawmidi_t*) handle->deviceHandle);
461 TRACE1(" snd_rawmidi_close() returns %d\n", err);
467 return err;