Fixes for alsa device reservation
[jack2.git] / macosx / JackPlatformPlug_os.h
blob97eece1e7f02a162f2a842ff30316f99d2db9e32
1 /*
2 Copyright (C) 2004-2008 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 __JackPlatformPlug_APPLE__
21 #define __JackPlatformPlug_APPLE__
23 #include <TargetConditionals.h>
25 #define jack_server_dir "/tmp"
26 #define jack_client_dir "/tmp"
27 #define JACK_DEFAULT_DRIVER "coreaudio"
29 namespace Jack
31 struct JackRequest;
32 struct JackResult;
34 class JackPosixMutex;
35 class JackMachThread;
36 class JackMachSemaphore;
38 class JackSocketServerChannel;
39 class JackSocketClientChannel;
40 class JackSocketServerNotifyChannel;
41 class JackSocketNotifyChannel;
43 class JackNetUnixSocket;
45 #ifdef MY_TARGET_OS_IPHONE
46 class JackClient;
47 class JackGraphManager;
48 class JackEngineControl;
49 class JackSynchro;
50 #endif
53 /* __JackPlatformMutex__ */
54 #include "JackPosixMutex.h"
55 namespace Jack { typedef JackPosixMutex JackMutex; }
57 /* __JackPlatformThread__ */
58 #include "JackMachThread.h"
59 namespace Jack { typedef JackMachThread JackThread; }
61 /* __JackPlatformSynchro__ client activation */
62 #ifndef MY_TARGET_OS_IPHONE
63 #include "JackMachSemaphore.h"
64 namespace Jack { typedef JackMachSemaphore JackSynchro; }
65 #endif
67 #include "JackSocket.h"
68 namespace Jack { typedef JackClientSocket JackChannelTransaction; }
70 #include "JackSocket.h"
71 namespace Jack { typedef JackClientSocket JackChannelTransaction; }
73 /* __JackPlatformProcessSync__ */
74 #include "JackProcessSync.h"
75 /* Only on windows a special JackProcessSync is used. It is directly defined by including JackProcessSync.h here */
77 #ifndef MY_TARGET_OS_IPHONE
78 /* __JackPlatformServerChannel__ */
79 #include "JackSocketServerChannel.h"
80 namespace Jack { typedef JackSocketServerChannel JackServerChannel; }
82 /* __JackPlatformClientChannel__ */
83 #include "JackSocketClientChannel.h"
84 namespace Jack { typedef JackSocketClientChannel JackClientChannel; }
86 /* __JackPlatformServerNotifyChannel__ */
87 #include "JackSocketServerNotifyChannel.h"
88 namespace Jack { typedef JackSocketServerNotifyChannel JackServerNotifyChannel; }
90 /* __JackPlatformNotifyChannel__ */
91 #include "JackSocketNotifyChannel.h"
92 namespace Jack { typedef JackSocketNotifyChannel JackNotifyChannel; }
93 #endif
95 /* __JackPlatformNetSocket__ */
96 #include "JackNetUnixSocket.h"
97 namespace Jack { typedef JackNetUnixSocket JackNetSocket; }
99 #endif