unsafe void OnShutdown(IntPtr args) { IsConnectedToJack = false; JackClient = null; if (Shutdown != null) { Shutdown(this, new EventArgs()); } }
protected unsafe void Close() { int status = ClientApi.Close(JackClient); if (status == 0) { IsConnectedToJack = false; JackClient = null; } }
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 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); }
unsafe void Dispose(bool isDisposing) { if (_jackClient == null || _port == null) { return; } if (PortApi.Unregister(_jackClient, _port) == 0) { _jackClient = null; _port = null; } }
protected unsafe ClientStatus BaseOpen(bool startServer) { if (JackClient != null) { return(ClientStatus.AlreadyThere); } JackOptions startOptions = startServer ? JackOptions.JackNullOption : JackOptions.JackNoStartServer; JackClient = ClientApi.Open(Name, startOptions, IntPtr.Zero); if (JackClient == null) { return(ClientStatus.Failure); } return(ClientStatus.New); }
public static extern unsafe uint GetLastFrameTime(UnsafeStructs.jack_client_t *client);
public static extern unsafe void TransportStop(UnsafeStructs.jack_client_t *client);
public static extern unsafe uint GetCurrentTransportFrame(UnsafeStructs.jack_client_t *client);
unsafe void Dispose(bool isDisposing) { if (_jackClient == null || _port == null) { return; } if (PortApi.Unregister (_jackClient, _port) == 0){ _jackClient = null; _port = null; } }
public static extern unsafe uint ConvertTimeToFrames(UnsafeStructs.jack_client_t *client, ulong frames);
public static extern unsafe int IsRealtime(UnsafeStructs.jack_client_t *client);
public static extern unsafe IntPtr GetThreadId(UnsafeStructs.jack_client_t *client);
public static extern unsafe int Deactivate(UnsafeStructs.jack_client_t *client);
public static extern unsafe IntPtr GetNameByUuid(UnsafeStructs.jack_client_t *client, string uuid);
unsafe void OnShutdown(IntPtr args) { IsConnectedToJack = false; JackClient = null; if (Shutdown != null) { Shutdown (this, new EventArgs ()); } }
protected unsafe void Close() { int status = ClientApi.Close (JackClient); if (status == 0) { IsConnectedToJack = false; JackClient = null; } }
protected unsafe ClientStatus BaseOpen(bool startServer) { if (JackClient != null) { return ClientStatus.AlreadyThere; } JackOptions startOptions = startServer ? JackOptions.JackNullOption : JackOptions.JackNoStartServer; JackClient = ClientApi.Open (Name, startOptions, IntPtr.Zero); if (JackClient == null) { return ClientStatus.Failure; } return ClientStatus.New; }
public static extern unsafe int GetCycleTimes(UnsafeStructs.jack_client_t *client, uint currentFrames, ulong currentUsecs, ulong nextUsecs, float periodUsecs);
public static extern unsafe ulong ConvertFramesToTime(UnsafeStructs.jack_client_t *client, uint frames);
internal unsafe MidiOutPort(UnsafeStructs.jack_client_t *jackClient, int index, string nameFormat = null) : base(jackClient, index, Direction.Out, PortType.Midi, nameFormat) { }
public static extern unsafe float GetXrunDelayedUsecs(UnsafeStructs.jack_client_t *client);
public static extern unsafe int SetSyncTimeout(UnsafeStructs.jack_client_t *client, ulong timeout);
public static extern unsafe uint CycleWait(UnsafeStructs.jack_client_t *client);
public static extern unsafe int TransportLocate(UnsafeStructs.jack_client_t *client, uint frame);
public static extern unsafe int SetSyncCallback(UnsafeStructs.jack_client_t *client, Callbacks.JackSyncCallback sync_callback, void *arg);
public static extern unsafe void CycleSignal(UnsafeStructs.jack_client_t *client, int status);
public static extern unsafe int SetTimebaseCallback(UnsafeStructs.jack_client_t *client, int conditional, Callbacks.JackTimebaseCallback timebase_callback, void *arg);
public static extern unsafe uint GetSampleRate(UnsafeStructs.jack_client_t *client);
public static extern unsafe JackTransportState TransportQuery(UnsafeStructs.jack_client_t *client, UnsafeStructs.jack_position_t *pos);
public static extern unsafe uint GetBufferSize(UnsafeStructs.jack_client_t *client);
public static extern unsafe int TransportReposition(UnsafeStructs.jack_client_t *client, UnsafeStructs.jack_position_t *pos);
public static extern unsafe float GetCpuLoad(UnsafeStructs.jack_client_t *client);
public static extern unsafe int ReleaseTimebase(UnsafeStructs.jack_client_t *client);
public static extern unsafe uint GetFramesSinceCycleStart(UnsafeStructs.jack_client_t *client);