Represents a multimedia source with its corresponding control methods.
Inheritance: IAudioDataProvider, INotifyPropertyChanged, IDisposable
Exemple #1
0
 protected virtual void Dispose(bool alsoManaged)
 {
     if (alsoManaged)
     {
         // free managed resources
         if (this.Media != null)
         {
             this.Media.Dispose();
             this.Media = null;
         }
     }
 }
Exemple #2
0
        protected virtual void Dispose(bool alsoManaged)
        {
            if (alsoManaged)
            {
                // free managed resources
                if (this.Media != null)
                {
                    this.Media.Dispose();
                    this.Media = null;
                }

                SeekPositionUpdateTimer.Stop();
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="AudioBufferProvider"/> class.
 /// </summary>
 /// <param name="media">The media.</param>
 public AudioBufferProvider(FFmpegMedia media)
 {
     this.Media = media;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AudioBufferProvider"/> class.
 /// </summary>
 /// <param name="media">The media.</param>
 public AudioBufferProvider(FFmpegMedia media)
 {
     this.Media = media;
 }