Wwise 버전

include/AK/Comm/AkCommunication.h

Go to the documentation of this file.
00001 
00002 //
00003 // Copyright (c) 2006 Audiokinetic Inc. / All Rights Reserved
00004 //
00006 
00013 
00014 #ifndef _AK_COMMUNICATION_H
00015 #define _AK_COMMUNICATION_H
00016 
00017 #include <AK/SoundEngine/Common/AkTypes.h>
00018 #include <AK/SoundEngine/Common/AkMemoryMgr.h>
00019 #include <AK/Tools/Common/AkPlatformFuncs.h>
00020 
00021 #define AK_COMM_SETTINGS_MAX_STRING_SIZE 64
00022 
00027 struct AkCommSettings
00028 {
00029     AkCommSettings()
00030     {
00031         szAppNetworkName[0] = 0;
00032     }
00033     AkUInt32    uPoolSize;      
00034 #ifdef AK_3DS
00035     AkThreadProperties threadProperties; 
00036 #endif
00037 
00047     struct Ports
00048     {
00050         Ports()
00051             : uDiscoveryBroadcast( AK_COMM_DEFAULT_DISCOVERY_PORT )
00052 #if defined( AK_COMM_NO_DYNAMIC_PORTS )
00053             , uCommand( AK_COMM_DEFAULT_DISCOVERY_PORT + 1 )
00054             , uNotification( AK_COMM_DEFAULT_DISCOVERY_PORT + 2 )
00055 #else
00056             , uCommand( 0 )
00057             , uNotification( 0 )
00058 #endif
00059         {
00060         }
00061 
00068         AkUInt16 uDiscoveryBroadcast;
00069 
00072         AkUInt16 uCommand;
00073 
00076         AkUInt16 uNotification;
00077     };
00078 
00084     Ports ports;    
00085 
00090     bool bInitSystemLib;
00091 
00094     char szAppNetworkName[AK_COMM_SETTINGS_MAX_STRING_SIZE];
00095 };
00096 
00097 namespace AK
00098 {
00099     namespace Comm
00100     {
00103 
00104 
00126         AK_EXTERNAPIFUNC( AKRESULT, Init )(
00127             const AkCommSettings &  in_settings
00128             );
00129 
00132         AK_EXTERNAPIFUNC(AkInt32, GetLastError());
00133 
00138         AK_EXTERNAPIFUNC( void, GetDefaultInitSettings )(
00139             AkCommSettings &    out_settings    
00140             );
00141         
00146         AK_EXTERNAPIFUNC( void, Term )();
00147 
00158         AK_EXTERNAPIFUNC( AKRESULT, Reset )();
00159         
00160 
00165         AK_EXTERNAPIFUNC( const AkCommSettings&, GetCurrentSettings )();
00166 
00168     }
00169 }
00170 
00171 #endif // _AK_COMMUNICATION_H