1 /* 2 Copyright (C) 2004-2008 Grame 3 Copyright (C) 2013 Samsung Electronics 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU Lesser General Public License as published by 7 the Free Software Foundation; either version 2.1 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 19 */ 20 21 #ifndef __JackPlatformPlug_android__ 22 #define __JackPlatformPlug_android__ 23 24 #define jack_server_dir "/data/misc/jack" 25 #define jack_client_dir "/data/misc/jack" 26 #define JACK_DEFAULT_DRIVER "alsa" 27 28 namespace Jack 29 { 30 struct JackRequest; 31 struct JackResult; 32 33 class JackPosixMutex; 34 class JackAndroidThread; 35 class JackFifo; 36 class JackSocketServerChannel; 37 class JackSocketClientChannel; 38 class JackSocketServerNotifyChannel; 39 class JackSocketNotifyChannel; 40 class JackClientSocket; 41 class JackNetUnixSocket; 42 } 43 44 /* __JackPlatformMutex__ */ 45 #include "JackPosixMutex.h" 46 namespace Jack {typedef JackPosixMutex JackMutex; } 47 48 /* __JackPlatformThread__ */ 49 #include "JackAndroidThread.h" 50 namespace Jack { typedef JackAndroidThread JackThread; } 51 52 /* __JackPlatformSynchro__ client activation */ 53 /* 54 #include "JackFifo.h" 55 namespace Jack { typedef JackFifo JackSynchro; } 56 */ 57 58 #include "JackAndroidSemaphore.h" 59 namespace Jack { typedef JackAndroidSemaphore JackSynchro; } 60 61 /* __JackPlatformChannelTransaction__ */ 62 /* 63 #include "JackSocket.h" 64 namespace Jack { typedef JackClientSocket JackChannelTransaction; } 65 */ 66 67 /* __JackPlatformProcessSync__ */ 68 #include "JackPosixProcessSync.h" 69 namespace Jack { typedef JackPosixProcessSync JackProcessSync; } 70 71 /* __JackPlatformServerChannel__ */ 72 #include "JackSocketServerChannel.h" 73 namespace Jack { typedef JackSocketServerChannel JackServerChannel; } 74 75 /* __JackPlatformClientChannel__ */ 76 #include "JackSocketClientChannel.h" 77 namespace Jack { typedef JackSocketClientChannel JackClientChannel; } 78 79 /* __JackPlatformServerNotifyChannel__ */ 80 #include "JackSocketServerNotifyChannel.h" 81 namespace Jack { typedef JackSocketServerNotifyChannel JackServerNotifyChannel; } 82 83 /* __JackPlatformNotifyChannel__ */ 84 #include "JackSocketNotifyChannel.h" 85 namespace Jack { typedef JackSocketNotifyChannel JackNotifyChannel; } 86 87 /* __JackPlatformNetSocket__ */ 88 #include "JackNetUnixSocket.h" 89 namespace Jack { typedef JackNetUnixSocket JackNetSocket; } 90 91 #endif 92