Initial Commit
This commit is contained in:
parent
480f897bd0
commit
6aad2c2b99
42 changed files with 2397 additions and 0 deletions
44
Assets/Scripts/PortMidiStruct.cs
Normal file
44
Assets/Scripts/PortMidiStruct.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
|
||||
namespace PortMidi
|
||||
{
|
||||
public struct PmDeviceInfo
|
||||
{
|
||||
public int structVersion;
|
||||
public string interf;
|
||||
public string name;
|
||||
public int input;
|
||||
public int output;
|
||||
public int opened;
|
||||
}
|
||||
|
||||
public struct PmEvent
|
||||
{
|
||||
public int message;
|
||||
public int timestamp;
|
||||
}
|
||||
|
||||
public struct Event
|
||||
{
|
||||
public int Timestamp;
|
||||
public int Status;
|
||||
public int Data1;
|
||||
public int Data2;
|
||||
}
|
||||
|
||||
public struct Stream
|
||||
{
|
||||
public int DeviceID;
|
||||
public IntPtr pmStream;
|
||||
public readonly StreamType streamType;
|
||||
public readonly int bufferSize;
|
||||
|
||||
public Stream(int DeviceID, IntPtr pmStream, StreamType streamType, int bufferSize)
|
||||
{
|
||||
this.streamType = streamType;
|
||||
this.DeviceID = DeviceID;
|
||||
this.pmStream = pmStream;
|
||||
this.bufferSize = bufferSize;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue