Files
UmaViewer/Assets/Scripts/Audio/NAudio/FileFormats/Mp3/IMp3FrameDecompressor.cs
T
2022-09-10 16:59:44 +08:00

32 lines
922 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace NAudio.Wave
{
/// <summary>
/// Interface for MP3 frame by frame decoder
/// </summary>
public interface IMp3FrameDecompressor : IDisposable
{
/// <summary>
/// Decompress a single MP3 frame
/// </summary>
/// <param name="frame">Frame to decompress</param>
/// <param name="dest">Output buffer</param>
/// <param name="destOffset">Offset within output buffer</param>
/// <returns>Bytes written to output buffer</returns>
int DecompressFrame(Mp3Frame frame, byte[] dest, int destOffset);
/// <summary>
/// Tell the decoder that we have repositioned
/// </summary>
void Reset();
/// <summary>
/// PCM format that we are converting into
/// </summary>
WaveFormat OutputFormat { get; }
}
}