fix: maintain passed in streams position
This commit is contained in:
@@ -11,6 +11,9 @@ internal interface IAudioService
|
||||
/// </summary>
|
||||
/// <param name="mp3">The input MP3 stream.</param>
|
||||
/// <returns>The output WAV stream.</returns>
|
||||
/// <exception cref="ArgumentNullException">Thrown when the MP3 stream is null.</exception>
|
||||
/// <exception cref="ArgumentException">Thrown when the MP3 stream is not readable or seekable.</exception>
|
||||
/// <remarks>The method will preserve the passed MP3 stream's data and position.</remarks
|
||||
Stream ConvertMp3ToWav16(Stream mp3);
|
||||
|
||||
/// <summary>
|
||||
@@ -19,6 +22,9 @@ internal interface IAudioService
|
||||
/// param name="wavStream">The input WAV stream.</param>
|
||||
/// <param name="segmentDuration">The duration of each segment.</param>
|
||||
/// <returns>The number of segments.</returns>
|
||||
/// <exception cref="ArgumentNullException">Thrown when the WAV stream is null.</exception>
|
||||
/// <exception cref="ArgumentException">Thrown when the WAV stream is not readable or seekable.</exception>
|
||||
/// <remarks>The method will preserve the passed WAV stream's data and position.</remarks>
|
||||
int GetNumberOfWavSegments(Stream wavStream, TimeSpan segmentDuration);
|
||||
|
||||
/// <summary>
|
||||
@@ -28,5 +34,8 @@ internal interface IAudioService
|
||||
/// <param name="segmentNumber">The segment number to retrieve.</param>
|
||||
/// <param name="segmentDuration">The duration of each segment.</param>
|
||||
/// <returns>The segment stream.</returns>
|
||||
/// <exception cref="ArgumentNullException">Thrown when the WAV stream is null.</exception>
|
||||
/// <exception cref="ArgumentException">Thrown when the WAV stream is not readable or seekable.</exception>
|
||||
/// <remarks>The method will preserve the passed WAV stream's data and position.</remarks>
|
||||
Stream GetWavSegment(Stream wavStream, int segmentNumber, TimeSpan segmentDuration);
|
||||
}
|
||||
Reference in New Issue
Block a user