CoreMidiClient.cpp File Reference

#include "CoreMidiClient.h"
#include "CoreMidi4J.h"
#include "CoreMidi4JUtilities.h"
#include <iostream>
#include <stdio.h>
#include <CoreMIDI/CoreMIDI.h>

Go to the source code of this file.

Functions

void notifyCallback (const MIDINotification *message, void *notifyRefCon)
 The native callback that is called when a MIDINotification message is received.
JNIEXPORT jint JNICALL Java_uk_co_xfactorylibrarians_coremidi4j_CoreMidiClient_createClient (JNIEnv *env, jobject obj, jstring clientName)
JNIEXPORT void JNICALL Java_uk_co_xfactorylibrarians_coremidi4j_CoreMidiClient_disposeClient (JNIEnv *env, jobject obj, jint clientReference)

Variables

MIDI_CALLBACK_PARAMETERSg_callbackParameters

Function Documentation

JNIEXPORT jint JNICALL Java_uk_co_xfactorylibrarians_coremidi4j_CoreMidiClient_createClient ( JNIEnv *  env,
jobject  obj,
jstring  clientName 
)

Creates a MIDI client reference

Class: com_coremidi4j_CoreMidiClient Method: createClient Signature: ()I

Parameters:
env The JNI environment
obj The reference to the java object instance that called this native method
Returns:
A reference to the created client
Exceptions:
CoreMidiException if the client cannot be created

Definition at line 114 of file CoreMidiClient.cpp.

JNIEXPORT void JNICALL Java_uk_co_xfactorylibrarians_coremidi4j_CoreMidiClient_disposeClient ( JNIEnv *  env,
jobject  obj,
jint  clientReference 
)

Disposes of a MIDI client reference

Class: com_coremidi4j__CoreMidiClient Method: disposeClient Signature: (I)V

Parameters:
env The JNI environment
obj The reference to the java object instance that called this native method
clientReference The client reference to release and dispose
Exceptions:
CoreMidiException if the client cannot be disposed

Definition at line 187 of file CoreMidiClient.cpp.

void notifyCallback ( const MIDINotification *  message,
void *  notifyRefCon 
)

The native callback that is called when a MIDINotification message is received.

The specification that this method is to be called when the MIDI specification is changed is contained in the creation of the MIDI client by the function MIDIClientCreate in Java_uk_co_xfactorylibrarians_coremidi4j_CoreMidiClient_createClient.

Parameters:
message A pointer to the MIDINotification message.
notifyRefCon The refCon pointer provided to MIDIClientCreate

Definition at line 42 of file CoreMidiClient.cpp.


Variable Documentation

Title: CoreMIDI4J Description: Core MIDI Device Provider for Java on OS X Copyright: Copyright (c) 2015-2016 Company: x.factory Librarians

Author:
Derek Cook, James Elliott

CoreMIDI4J is an open source Service Provider Interface for supporting external MIDI devices on MAC OS X

This file is part of the XCODE project that provides the native implementation of CoreMIDI4J

CREDITS - This library uses principles established by OSXMIDI4J, but converted so it operates at the JNI level with no additional libraries required

Definition at line 24 of file CoreMidiClient.cpp.

 All Data Structures Files Functions Variables Typedefs Defines
Generated on Tue Sep 12 17:29:57 2017 for CoreMidi4J by  doxygen 1.6.3