Lines Matching refs:err
83 static const char* midi_strerror(int err) {
92 switch (err) {
142 const char* MIDI_Utils_GetErrorMsg(int err) {
143 return midi_strerror(err);
147 void MIDI_Utils_PrintError(int err) {
149 const char* s = MIDI_Utils_GetErrorMsg(err);
436 OSStatus err = noErr;
438 err = MIDIClientCreate(CFSTR("MIDI Client"), NULL, NULL, &client);
439 if (err != noErr) { goto Exit; }
443 err = MIDIInputPortCreate(client, CFSTR("MIDI Input Port"), midiReadProc, NULL, &inPort);
444 if (err != noErr) { goto Exit; }
446 err = MIDIOutputPortCreate(client, CFSTR("MIDI Output Port"), &outPort);
447 if (err != noErr) { goto Exit; }
450 if (err != noErr) {
451 const char* s = MIDI_Utils_GetErrorMsg(err);
465 int err = MIDI_ERROR_NONE;
507 return err;
512 int err = MIDI_ERROR_NONE;
540 return err;
545 OSStatus err = noErr;
568 err = MIDIPortConnectSource(inPort, (MIDIEndpointRef) (intptr_t) (handle->h.deviceHandle), (void*) handle);
571 err = MIDIFlushOutput((MIDIEndpointRef) (intptr_t) handle->h.deviceHandle);
581 OSStatus err = noErr;
593 err = MIDIPortDisconnectSource(inPort, (MIDIEndpointRef) (intptr_t) (handle->h.deviceHandle));
596 err = MIDIFlushOutput((MIDIEndpointRef) (intptr_t) handle->h.deviceHandle);