Exemple #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);
        }
    }
Exemple #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;
 }
Exemple #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;
 }
Exemple #6
0
 internal static IntPtr getCPtr(AkAudioFormat obj)
 {
     return((obj != null) ? obj.swigCPtr : IntPtr.Zero);
 }
Exemple #7
0
 void AudioFormatDelegate(uint playingID, AkAudioFormat audioFormat)
 {
     audioFormat.channelConfig.uNumChannels = NUMBER_OF_CHANNELS;
     audioFormat.uSampleRate = (uint)SampleRate;
 }