Esempio n. 1
0
    public virtual void Dispose()
    {
        AkAudioFormat format = this;

        lock (format)
        {
            if (this.swigCPtr != IntPtr.Zero)
            {
                if (this.swigCMemOwn)
                {
                    this.swigCMemOwn = false;
                    AkSoundEnginePINVOKE.CSharp_delete_AkAudioFormat(this.swigCPtr);
                }
                this.swigCPtr = IntPtr.Zero;
            }
            GC.SuppressFinalize(this);
        }
    }
Esempio n. 2
0
 // Callback that sets the audio format - This function is called once before samples are requested.
 void AudioFormatDelegate(uint playingID, AkAudioFormat audioFormat)
 {
     // Channel configuration and sample rate are the main parameters that need to be set.
     audioFormat.channelConfig.uNumChannels = NumberOfChannels;
     audioFormat.uSampleRate = SampleRate;
 }
Esempio n. 3
0
 internal static IntPtr getCPtr(AkAudioFormat obj)
 {
     return((obj == null) ? IntPtr.Zero : obj.swigCPtr);
 }
 internal static global::System.IntPtr getCPtr(AkAudioFormat obj)
 {
     return((obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr);
 }
 internal static IntPtr getCPtr(AkAudioFormat obj) {
   return (obj == null) ? IntPtr.Zero : obj.swigCPtr;
 }
Esempio n. 6
0
 internal static IntPtr getCPtr(AkAudioFormat obj)
 {
     return((obj != null) ? obj.swigCPtr : IntPtr.Zero);
 }
Esempio n. 7
0
 void AudioFormatDelegate(uint playingID, AkAudioFormat audioFormat)
 {
     audioFormat.channelConfig.uNumChannels = NUMBER_OF_CHANNELS;
     audioFormat.uSampleRate = (uint)SampleRate;
 }