Lines Matching refs:err
39 if (err != MMSYSERR_NOERROR) \
40 ERROR3("MIDI IN Error in %s:%d : %s\n", __FILE__, __LINE__, MIDI_IN_GetErrorStr((INT32) err)); \
157 volatile MMRESULT err; // processing result
203 data.err = ::midiInOpen((HMIDIIN*)&(data.handle->deviceHandle),
214 MMRESULT err;
224 err = data.err;
226 return err;
235 char* MIDI_IN_GetErrorStr(INT32 err) {
237 midiInGetErrorText((MMRESULT) err, winMidiInErrMsg, WIN_MAX_ERROR_LEN);
245 INT32 getMidiInCaps(INT32 deviceID, MIDIINCAPS* caps, INT32* err) {
246 (*err) = midiInGetDevCaps(deviceID, caps, sizeof(MIDIINCAPS));
247 return ((*err) == MMSYSERR_NOERROR);
252 INT32 err;
254 if (getMidiInCaps(deviceID, &midiInCaps, &err)) {
260 return err;
277 INT32 err = MIDI_NOT_SUPPORTED;
279 if (getMidiInCaps(deviceID, &midiInCaps, &err) && (nameLength>7)) {
284 return err;
290 MMRESULT err = MMSYSERR_NOERROR;
301 err = midiInAddBuffer((HMIDIIN) handle->deviceHandle, hdr, sizeof(MIDIHDR));
304 return (INT32) err;
309 MMRESULT err = MMSYSERR_NOERROR;
318 err = midiInUnprepareHeader((HMIDIIN) handle->deviceHandle, &(sysex->header[i]), sizeof(MIDIHDR));
321 return (INT32) err;
325 MMRESULT err;
359 err = MidiIn_OpenHelper::midiInOpen(deviceID, *handle);
361 if ((err != MMSYSERR_NOERROR) || (!(*handle)->deviceHandle)) {
367 return (INT32) err;
378 MMRESULT err;
387 err = midiInClose((HMIDIIN) handle->deviceHandle);
400 return (INT32) err;
405 MMRESULT err;
421 err = midiInStart((HMIDIIN) handle->deviceHandle);
431 return (INT32) err;
436 MMRESULT err;
449 err = midiInStop((HMIDIIN) handle->deviceHandle);
457 return (INT32) err;