SuperpoweredSDK  v2.0.2
Superpowered Audio SDK
Superpowered::AndroidUSBMIDI Class Reference

This class implements a custom low latency USB MIDI stack for Android, fully bypassing the Android system MIDI stack. More...

#include "SuperpoweredAndroidUSB.h"

Static Public Member Functions

static void send (int deviceID, unsigned char *data, int bytes)
 Sends MIDI to a USB MIDI device. More...
 
static bool startIO (int deviceID, void *clientdata, AndroidUSBMIDIReceivedCallback callback)
 
static void stopIO (int deviceID)
 Stops MIDI input/output. More...
 

Detailed Description

This class implements a custom low latency USB MIDI stack for Android, fully bypassing the Android system MIDI stack.

Member Function Documentation

◆ send()

static void Superpowered::AndroidUSBMIDI::send ( int  deviceID,
unsigned char *  data,
int  bytes 
)
static

Sends MIDI to a USB MIDI device.

Parameters
deviceIDDevice identifier.
dataRaw MIDI data.
bytesNumber of bytes.

◆ startIO()

static bool Superpowered::AndroidUSBMIDI::startIO ( int  deviceID,
void *  clientdata,
AndroidUSBMIDIReceivedCallback  callback 
)
static
Returns
Starts MIDI input/output and returns with success (true) or failure (false).
Parameters
deviceIDDevice identifier.
clientdataCustom pointer for the callback.
callbackThe callback to be called when MIDI input is available.

◆ stopIO()

static void Superpowered::AndroidUSBMIDI::stopIO ( int  deviceID)
static

Stops MIDI input/output.

Parameters
deviceIDDevice identifier.

The documentation for this class was generated from the following file: