internal unsafe Port(UnsafeStructs.jack_client_t*jackClient, int index, Direction direction, PortType portType, string nameFormat) { if (nameFormat == null) { nameFormat = "{type}{direction}_{index}"; } _jackClient = jackClient; Direction = direction; Name = CreateName (nameFormat, index, direction, portType); PortType = portType; _port = RegisterPort (direction, portType); }
internal unsafe PortReference(UnsafeStructs.jack_port_t* portPointer) { PortPointer = portPointer; FullName = PortApi.GetName (portPointer).PtrToString (); bool isPhysicalPort; Direction direction; ReadJackPortFlags (portPointer, out direction, out isPhysicalPort); Direction = direction; IsPhysicalPort = isPhysicalPort; PortType = GetPortType (portPointer); }
public static unsafe extern int IsConnected(UnsafeStructs.jack_port_t* port);
public static unsafe extern IntPtr GetType(UnsafeStructs.jack_port_t* port);
public static unsafe extern int GetPortFlags(UnsafeStructs.jack_port_t* port);
public static unsafe extern UnsafeStructs.jack_port_t* GetPortById(UnsafeStructs.jack_client_t* client, uint portId);
public static unsafe extern IntPtr GetConnections(UnsafeStructs.jack_port_t* port);
public static unsafe extern float* GetBuffer(UnsafeStructs.jack_port_t* port, uint frames);
public static unsafe extern int RequestMonitor(UnsafeStructs.jack_port_t* port, int onoff);
public static unsafe extern UnsafeStructs.jack_port_t* Register(UnsafeStructs.jack_client_t* client, string portName, string portType, JackPortFlags portFlags, ulong bufferSize);
public static unsafe extern int RecomputeTotalLatencies(UnsafeStructs.jack_client_t* client);
public static unsafe extern int MonitoringInput(UnsafeStructs.jack_port_t* port);
public static unsafe extern int IsMine(UnsafeStructs.jack_client_t* client, UnsafeStructs.jack_port_t* port);
public static unsafe extern int IsConnectedTo(UnsafeStructs.jack_port_t* port, string portName);
public static unsafe extern int SetXrunCallback(UnsafeStructs.jack_client_t* client, Callbacks.JackXRunCallback xrunCallback, IntPtr arg);
public static unsafe extern int GetAliases(UnsafeStructs.jack_port_t* port, IntPtr[] aliases);
public static unsafe extern IntPtr GetAllConnections(UnsafeStructs.jack_client_t* client, UnsafeStructs.jack_port_t* port);
public static unsafe extern int RequestMonitorByName(UnsafeStructs.jack_client_t* client, string portName, int onoff);
public static unsafe extern uint GetBufferSize(UnsafeStructs.jack_client_t* client, string portType);
public static unsafe extern int SetName(UnsafeStructs.jack_port_t* port, string portName);
public static unsafe extern void GetLatencyRange(UnsafeStructs.jack_port_t* port, JackLatencyCallbackMode mode, IntPtr range);
public static unsafe extern int Unregister(UnsafeStructs.jack_client_t* client, UnsafeStructs.jack_port_t* port);
public static unsafe extern UnsafeStructs.jack_port_t* GetPortByName(UnsafeStructs.jack_client_t* client, string portName);
public static unsafe extern int UnsetAlias(UnsafeStructs.jack_port_t* port, string alias);
public static unsafe extern IntPtr GetPorts(UnsafeStructs.jack_client_t* client, string portNamePattern, string typeNamePattern, ulong flags);
public static unsafe extern int Disconnect(UnsafeStructs.jack_client_t* client, string sourcePort, string destinationPort);
public static unsafe extern ulong GetUuid(UnsafeStructs.jack_port_t* port);
public static unsafe extern int Disconnect(UnsafeStructs.jack_client_t* client, UnsafeStructs.jack_port_t* port);
internal unsafe AudioInPort(UnsafeStructs.jack_client_t* jackClient, int index, string nameFormat = null) : base(jackClient, index, Direction.In, PortType.Audio, nameFormat) { }
public static unsafe extern int EnsureMonitor(UnsafeStructs.jack_port_t* port, int onoff);