Init() public static method

public static Init ( IntPtr in_pMemory, uint in_uSize ) : AKRESULT
in_pMemory IntPtr
in_uSize uint
return AKRESULT
Exemplo n.º 1
0
    static public AKRESULT Init(int BufferSize)
    {
        m_pNotifMem = (BufferSize > 0) ? Marshal.AllocHGlobal(BufferSize) : IntPtr.Zero;

#if UNITY_EDITOR
        AkCallbackSerializer.SetLocalOutput((uint)AkMonitorErrorLevel.ErrorLevel_All);
#endif

        return(AkCallbackSerializer.Init(m_pNotifMem, (uint)BufferSize));
    }
Exemplo n.º 2
0
    public static void Init(InitializationSettings settings)
    {
        IsLoggingEnabled = settings.IsLoggingEnabled;

#if UNITY_EDITOR
        AkCallbackSerializer.SetLocalOutput((uint)AkMonitorErrorLevel.ErrorLevel_All);
#endif

        AkCallbackSerializer.Init();
    }
    public static AKRESULT Init(InitializationSettings settings)
    {
        IsLoggingEnabled = settings.IsLoggingEnabled;

        m_pNotifMem = settings.BufferSize > 0 ? System.Runtime.InteropServices.Marshal.AllocHGlobal(settings.BufferSize) : System.IntPtr.Zero;

#if UNITY_EDITOR
        AkCallbackSerializer.SetLocalOutput((uint)AkMonitorErrorLevel.ErrorLevel_All);
#endif

        return(AkCallbackSerializer.Init(m_pNotifMem, (uint)settings.BufferSize));
    }
Exemplo n.º 4
0
 public static AKRESULT Init()
 {
     m_pNotifMem = Marshal.AllocHGlobal(0x1000);
     return(AkCallbackSerializer.Init(m_pNotifMem, 0x1000));
 }
Exemplo n.º 5
0
 static public AKRESULT Init()
 {
     //Allocate 4k for notifications that will happen during one game frame.
     m_pNotifMem = Marshal.AllocHGlobal(4096);
     return(AkCallbackSerializer.Init(m_pNotifMem, 4096));
 }
Exemplo n.º 6
0
 static public AKRESULT Init(int BufferSize)
 {
     m_pNotifMem = (BufferSize > 0) ? Marshal.AllocHGlobal(BufferSize) : IntPtr.Zero;
     return(AkCallbackSerializer.Init(m_pNotifMem, (uint)BufferSize));
 }
 public static AKRESULT Init()
 {
     AkCallbackManager.m_pNotifMem = Marshal.AllocHGlobal(4096);
     return(AkCallbackSerializer.Init(AkCallbackManager.m_pNotifMem, 4096u));
 }