Beispiel #1
0
 unsafe void OnShutdown(IntPtr args)
 {
     IsConnectedToJack = false;
     JackClient        = null;
     if (Shutdown != null)
     {
         Shutdown(this, new EventArgs());
     }
 }
Beispiel #2
0
        protected unsafe void Close()
        {
            int status = ClientApi.Close(JackClient);

            if (status == 0)
            {
                IsConnectedToJack = false;
                JackClient        = null;
            }
        }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 unsafe void Dispose(bool isDisposing)
 {
     if (_jackClient == null || _port == null)
     {
         return;
     }
     if (PortApi.Unregister(_jackClient, _port) == 0)
     {
         _jackClient = null;
         _port       = null;
     }
 }
Beispiel #6
0
        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);
        }
Beispiel #7
0
 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);
Beispiel #10
0
 unsafe void Dispose(bool isDisposing)
 {
     if (_jackClient == null || _port == null) {
         return;
     }
     if (PortApi.Unregister (_jackClient, _port) == 0){
         _jackClient = null;
         _port = null;
     }
 }
Beispiel #11
0
 public static extern unsafe uint ConvertTimeToFrames(UnsafeStructs.jack_client_t *client, ulong frames);
Beispiel #12
0
 public static extern unsafe int IsRealtime(UnsafeStructs.jack_client_t *client);
Beispiel #13
0
 public static extern unsafe IntPtr GetThreadId(UnsafeStructs.jack_client_t *client);
Beispiel #14
0
 public static extern unsafe int Deactivate(UnsafeStructs.jack_client_t *client);
Beispiel #15
0
 public static extern unsafe IntPtr GetNameByUuid(UnsafeStructs.jack_client_t *client, string uuid);
Beispiel #16
0
 unsafe void OnShutdown(IntPtr args)
 {
     IsConnectedToJack = false;
     JackClient = null;
     if (Shutdown != null) {
         Shutdown (this, new EventArgs ());
     }
 }
Beispiel #17
0
 protected unsafe void Close()
 {
     int status = ClientApi.Close (JackClient);
     if (status == 0) {
         IsConnectedToJack = false;
         JackClient = null;
     }
 }
Beispiel #18
0
 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;
 }
Beispiel #19
0
 public static extern unsafe int GetCycleTimes(UnsafeStructs.jack_client_t *client, uint currentFrames, ulong currentUsecs, ulong nextUsecs, float periodUsecs);
Beispiel #20
0
 public static extern unsafe ulong ConvertFramesToTime(UnsafeStructs.jack_client_t *client, uint frames);
Beispiel #21
0
 internal unsafe MidiOutPort(UnsafeStructs.jack_client_t *jackClient, int index, string nameFormat = null) : base(jackClient, index, Direction.Out, PortType.Midi, nameFormat)
 {
 }
Beispiel #22
0
 public static extern unsafe float GetXrunDelayedUsecs(UnsafeStructs.jack_client_t *client);
 public static extern unsafe int SetSyncTimeout(UnsafeStructs.jack_client_t *client, ulong timeout);
Beispiel #24
0
 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);
Beispiel #27
0
 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);
Beispiel #29
0
 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);
Beispiel #31
0
 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);
Beispiel #33
0
 public static extern unsafe float GetCpuLoad(UnsafeStructs.jack_client_t *client);
 public static extern unsafe int ReleaseTimebase(UnsafeStructs.jack_client_t *client);
Beispiel #35
0
 public static extern unsafe uint GetFramesSinceCycleStart(UnsafeStructs.jack_client_t *client);