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

            if (status == 0)
            {
                IsConnectedToJack = false;
                JackClient        = null;
            }
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
 unsafe void Dispose(bool isDisposing)
 {
     if (_jackClient == null || _port == null)
     {
         return;
     }
     if (PortApi.Unregister(_jackClient, _port) == 0)
     {
         _jackClient = null;
         _port       = null;
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 7
0
 public static extern unsafe uint GetLastFrameTime(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 8
0
 public static extern unsafe void TransportStop(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 9
0
 public static extern unsafe uint GetCurrentTransportFrame(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 10
0
 unsafe void Dispose(bool isDisposing)
 {
     if (_jackClient == null || _port == null) {
         return;
     }
     if (PortApi.Unregister (_jackClient, _port) == 0){
         _jackClient = null;
         _port = null;
     }
 }
Ejemplo n.º 11
0
 public static extern unsafe uint ConvertTimeToFrames(UnsafeStructs.jack_client_t *client, ulong frames);
Ejemplo n.º 12
0
 public static extern unsafe int IsRealtime(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 13
0
 public static extern unsafe IntPtr GetThreadId(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 14
0
 public static extern unsafe int Deactivate(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 15
0
 public static extern unsafe IntPtr GetNameByUuid(UnsafeStructs.jack_client_t *client, string uuid);
Ejemplo n.º 16
0
 unsafe void OnShutdown(IntPtr args)
 {
     IsConnectedToJack = false;
     JackClient = null;
     if (Shutdown != null) {
         Shutdown (this, new EventArgs ());
     }
 }
Ejemplo n.º 17
0
 protected unsafe void Close()
 {
     int status = ClientApi.Close (JackClient);
     if (status == 0) {
         IsConnectedToJack = false;
         JackClient = null;
     }
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 19
0
 public static extern unsafe int GetCycleTimes(UnsafeStructs.jack_client_t *client, uint currentFrames, ulong currentUsecs, ulong nextUsecs, float periodUsecs);
Ejemplo n.º 20
0
 public static extern unsafe ulong ConvertFramesToTime(UnsafeStructs.jack_client_t *client, uint frames);
Ejemplo n.º 21
0
 internal unsafe MidiOutPort(UnsafeStructs.jack_client_t *jackClient, int index, string nameFormat = null) : base(jackClient, index, Direction.Out, PortType.Midi, nameFormat)
 {
 }
Ejemplo n.º 22
0
 public static extern unsafe float GetXrunDelayedUsecs(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 23
0
 public static extern unsafe int SetSyncTimeout(UnsafeStructs.jack_client_t *client, ulong timeout);
Ejemplo n.º 24
0
 public static extern unsafe uint CycleWait(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 25
0
 public static extern unsafe int TransportLocate(UnsafeStructs.jack_client_t *client, uint frame);
Ejemplo n.º 26
0
 public static extern unsafe int SetSyncCallback(UnsafeStructs.jack_client_t *client, Callbacks.JackSyncCallback sync_callback, void *arg);
Ejemplo n.º 27
0
 public static extern unsafe void CycleSignal(UnsafeStructs.jack_client_t *client, int status);
Ejemplo n.º 28
0
 public static extern unsafe int SetTimebaseCallback(UnsafeStructs.jack_client_t *client, int conditional,
                                                     Callbacks.JackTimebaseCallback timebase_callback, void *arg);
Ejemplo n.º 29
0
 public static extern unsafe uint GetSampleRate(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 30
0
 public static extern unsafe JackTransportState TransportQuery(UnsafeStructs.jack_client_t *client, UnsafeStructs.jack_position_t *pos);
Ejemplo n.º 31
0
 public static extern unsafe uint GetBufferSize(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 32
0
 public static extern unsafe int TransportReposition(UnsafeStructs.jack_client_t *client, UnsafeStructs.jack_position_t *pos);
Ejemplo n.º 33
0
 public static extern unsafe float GetCpuLoad(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 34
0
 public static extern unsafe int ReleaseTimebase(UnsafeStructs.jack_client_t *client);
Ejemplo n.º 35
0
 public static extern unsafe uint GetFramesSinceCycleStart(UnsafeStructs.jack_client_t *client);