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