1234567891011121314151617181920212223242526272829 |
- namespace Bmp.Core.FFMpeg.CsCorePorts;
- /// <summary>
- /// Defines the base for all audio streams.
- /// </summary>
- public interface IAudioSource : IDisposable
- {
- /// <summary>
- /// Gets a value indicating whether the <see cref="IAudioSource" /> supports seeking.
- /// </summary>
- bool CanSeek { get; }
- /// <summary>
- /// Gets the <see cref="WaveFormat" /> of the waveform-audio data.
- /// </summary>
- WaveFormat WaveFormat { get; }
- /// <summary>
- /// Gets or sets the current position. The unit of this property depends on the implementation of this interface. Some
- /// implementations may not support this property.
- /// </summary>
- long Position { get; set; }
- /// <summary>
- /// Gets the length of the waveform-audio data. The unit of this property depends on the implementation of this
- /// interface. Some implementations may not support this property.
- /// </summary>
- long Length { get; }
- }
|