Lines Matching defs:deviceHandle
151 if (!handle || !handle->deviceHandle || !handle->longBuffers) {
152 ERROR0("MIDI_OUT_unprepareLongBuffers: handle, deviceHandle, or longBuffers == NULL\n");
159 err = midiOutUnprepareHeader((HMIDIOUT) handle->deviceHandle, hdr, sizeof(MIDIHDR));
166 INT32 freeLongBuffer(MIDIHDR* hdr, HMIDIOUT deviceHandle, INT32 minToLeaveData) {
173 if (hdr->dwFlags && deviceHandle) {
174 err = midiOutUnprepareHeader(deviceHandle, hdr, sizeof(MIDIHDR));
197 err = freeLongBuffer(&(sysex->header[i]), (HMIDIOUT) handle->deviceHandle, -1);
244 err = midiOutOpen((HMIDIOUT*) &((*handle)->deviceHandle), deviceID,
247 if ((err != MMSYSERR_NOERROR) || (!(*handle)->deviceHandle)) {
249 if (midiOutShortMsg((HMIDIOUT) ((*handle)->deviceHandle),0) == MMSYSERR_INVALHANDLE) {
283 if (handle->deviceHandle) {
286 err = midiOutReset((HMIDIOUT) handle->deviceHandle);
288 ERROR0("ERROR: MIDI_OUT_CloseDevice: deviceHandle is NULL\n");
297 MIDI_OUT_SendShortMessage(deviceHandle, (unsigned char)(176 + channel), (unsigned char)64, (unsigned char)0, (UINT32)-1);
307 if (handle->deviceHandle) {
308 err = midiOutClose((HMIDIOUT) handle->deviceHandle);
310 handle->deviceHandle = NULL;
339 err = midiOutShortMsg((HMIDIOUT) handle->deviceHandle, packedMsg);
400 freeLongBuffer(hdr, handle->deviceHandle, (INT32) size);
407 err = midiOutPrepareHeader((HMIDIOUT) handle->deviceHandle, hdr, sizeof(MIDIHDR));
409 freeLongBuffer(hdr, handle->deviceHandle, -1);
413 err = midiOutLongMsg((HMIDIOUT) handle->deviceHandle, hdr, sizeof(MIDIHDR));
415 freeLongBuffer(hdr, handle->deviceHandle, -1);