#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms.
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.11
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


using System;
using System.Runtime.InteropServices;

public class AkCallbackSerializer : IDisposable {
  private IntPtr swigCPtr;
  protected bool swigCMemOwn;

  internal AkCallbackSerializer(IntPtr cPtr, bool cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  internal static IntPtr getCPtr(AkCallbackSerializer obj) {
    return (obj == null) ? IntPtr.Zero : obj.swigCPtr;
  }

  ~AkCallbackSerializer() {
    Dispose();
  }

  public virtual void Dispose() {
    lock(this) {
      if (swigCPtr != IntPtr.Zero) {
        if (swigCMemOwn) {
          swigCMemOwn = false;
          AkSoundEnginePINVOKE.CSharp_delete_AkCallbackSerializer(swigCPtr);
        }
        swigCPtr = IntPtr.Zero;
      }
      GC.SuppressFinalize(this);
    }
  }

  public static AKRESULT Init(IntPtr in_pMemory, uint in_uSize) {
    AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Init(in_pMemory, in_uSize);

    return ret;
  }

  public static void Term() {
    AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Term();

  }

  public static IntPtr Lock() { return AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Lock(); }

  public static void SetLocalOutput(uint in_uErrorLevel) {
    AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_SetLocalOutput(in_uErrorLevel);

  }

  public static void Unlock() {
    AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_Unlock();

  }

  public static AKRESULT AudioSourceChangeCallbackFunc(bool in_bOtherAudioPlaying, object in_pCookie) {
    AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_AkCallbackSerializer_AudioSourceChangeCallbackFunc(in_bOtherAudioPlaying, in_pCookie != null ? (IntPtr)in_pCookie.GetHashCode() : (IntPtr)0);

    return ret;
  }

  public AkCallbackSerializer() : this(AkSoundEnginePINVOKE.CSharp_new_AkCallbackSerializer(), true) {

  }

}
#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms.