Example #1
0
		public AUScheduledAudioFileRegion (AudioFile audioFile, AUScheduledAudioFileRegionCompletionHandler completionHandler = null)
		{
			if (audioFile == null)
				throw new ArgumentNullException (nameof (audioFile));

			AudioFile = audioFile;
			this.completionHandler = completionHandler;
		}
Example #2
0
        public AUScheduledAudioFileRegion(AudioFile audioFile, AUScheduledAudioFileRegionCompletionHandler completionHandler = null)
        {
            if (audioFile == null)
            {
                throw new ArgumentNullException(nameof(audioFile));
            }

            AudioFile = audioFile;
            this.completionHandler = completionHandler;
        }
Example #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                completionHandler = null;
            }

            if (handle.IsAllocated)
            {
                handle.Free();
            }
        }
Example #4
0
		protected virtual void Dispose (bool disposing)
		{
			if (disposing)
				completionHandler = null;

			if (handle.IsAllocated)
				handle.Free ();
		}