2 Copyright (C) 2004-2006 Grame
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __JackWinNamedPipeClientChannel__
21 #define __JackWinNamedPipeClientChannel__
23 #include "JackChannel.h"
24 #include "JackWinNamedPipe.h"
25 #include "JackThread.h"
26 #include "JackRequest.h"
32 \brief JackClientChannel using pipes.
35 class JackWinNamedPipeClientChannel
: public JackClientChannelInterface
, public JackRunnableInterface
40 JackWinNamedPipeClient fRequestPipe
; // Pipe to communicate with the server
41 JackWinNamedPipeServer fNotificationListenPipe
; // Pipe listener for server notification
42 JackThread
* fThread
; // Thread to execute the event loop
45 void ServerSyncCall(JackRequest
* req
, JackResult
* res
, int* result
);
46 void ServerAsyncCall(JackRequest
* req
, JackResult
* res
, int* result
);
50 JackWinNamedPipeClientChannel();
51 virtual ~JackWinNamedPipeClientChannel();
53 int Open(const char* name
, JackClient
* obj
);
59 void ClientNew(const char* name
, int* shared_engine
, int* shared_client
, int* shared_ports
, int* result
);
60 void ClientClose(int refnum
, int* result
);
62 void ClientActivate(int refnum
, int* result
);
63 void ClientDeactivate(int refnum
, int* result
);
65 void PortRegister(int refnum
, const char* name
, unsigned int flags
, unsigned int buffer_size
, jack_port_id_t
* port_index
, int* result
);
66 void PortUnRegister(int refnum
, jack_port_id_t port_index
, int* result
);
68 void PortConnect(int refnum
, const char* src
, const char* dst
, int* result
);
69 void PortDisconnect(int refnum
, const char* src
, const char* dst
, int* result
);
71 void PortConnect(int refnum
, jack_port_id_t src
, jack_port_id_t dst
, int* result
);
72 void PortDisconnect(int refnum
, jack_port_id_t src
, jack_port_id_t dst
, int* result
);
74 void SetBufferSize(jack_nframes_t nframes
, int* result
);
75 void SetFreewheel(int onoff
, int* result
);
77 void ReleaseTimebase(int refnum
, int* result
);
78 void SetTimebaseCallback(int refnum
, int conditional
, int* result
);
80 // JackRunnableInterface interface