Represents a multimedia source with its corresponding control methods.
Наследование: IAudioDataProvider, INotifyPropertyChanged, IDisposable
Пример #1
0
 protected virtual void Dispose(bool alsoManaged)
 {
     if (alsoManaged)
     {
         // free managed resources
         if (this.Media != null)
         {
             this.Media.Dispose();
             this.Media = null;
         }
     }
 }
Пример #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;
 }