protected virtual void Dispose(bool alsoManaged) { if (alsoManaged) { // free managed resources if (this.Media != null) { this.Media.Dispose(); this.Media = null; } } }
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; }