Skip to content

Commit

Permalink
MP3 Streaming changes needed.
Browse files Browse the repository at this point in the history
Added support needed for external MP3 streaming support.
  • Loading branch information
JoeGilkey committed May 19, 2018
1 parent f6c9ee3 commit 9cd9b48
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CSCore/Codecs/MP3/DmoMP3Decoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public DmoMp3Decoder(Stream stream)
{
}

internal DmoMp3Decoder(Stream stream, bool enableSeeking)
/// <summary>
/// Initializes a new instance of the <see cref="DmoMp3Decoder"/> class.
/// </summary>
/// <param name="stream">Stream wich contains raw MP3 data.</param>
/// <param name="enableSeeking">Bool defining if seek should be used on the MP3 stream.</param>
public DmoMp3Decoder(Stream stream, bool enableSeeking)
{
if (stream == null)
throw new ArgumentNullException("stream");
Expand Down
6 changes: 5 additions & 1 deletion CSCore/Utils/Buffer/FixedSizeBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ protected virtual void Dispose(bool disposing)
Dispose(false);
}

internal Stream ToStream()
/// <summary>
/// Converts the buffer into a stream.
/// </summary>
/// <returns>Stream wrapper around the buffer.</returns>
public Stream ToStream()
{
if(typeof(T) != typeof(byte))
throw new NotSupportedException("Only byte buffers are supported.");
Expand Down

0 comments on commit 9cd9b48

Please sign in to comment.