Navigation
API > API/Plugins > API/Plugins/MIDIDevice
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMIDIDeviceControllerBase
- UMIDIDeviceController
References
| Module | MIDIDevice |
| Header | /Engine/Plugins/Runtime/MIDIDevice/Source/MIDIDevice/Public/MIDIDeviceController.h |
| Include | #include "MIDIDeviceController.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UMIDIDeviceController : public UMIDIDeviceControllerBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | DeviceID | The unique ID of this device | |
| FString | DeviceName | The name of this device. This name comes from the MIDI hardware, any might not be unique | |
| int32 | MIDIBufferSize | Size of the MIDI buffer in bytes | |
| FOnMIDIEvent | OnMIDIEvent | Register with this to find out about incoming MIDI events from this device | |
| void * | PMMIDIInputStream | The PortMidi stream used for MIDI input for this device |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor that shuts down the device if it's still in use |
Overridden from UMIDIDeviceControllerBase
| Type | Name | Description | |
|---|---|---|---|
| FString | The name of this device. This name comes from the MIDI hardware, any might not be unique | ||
| int32 | Size of the MIDI buffer in bytes | ||
| void | Called every frame by UMIDIDeviceManager to poll for new MIDI events and broadcast them out to subscribers of OnMIDIEvent. | ||
| void | Called during destruction to clean up this device. Don't call this directly. | ||
| void | StartupDevice
(
const int32 InitDeviceID, |
Called from UMIDIDeviceManager after the controller is created to get it ready to use. |