MVH/NAudio-2.2.1/NAudio.Wasapi/Dmo/MediaObjectSizeInfo.cs

45 lines
1018 B
C#
Raw Normal View History

2024-06-07 00:47:07 +02:00
using System;
namespace NAudio.Dmo
{
/// <summary>
/// Media Object Size Info
/// </summary>
public class MediaObjectSizeInfo
{
/// <summary>
/// Minimum Buffer Size, in bytes
/// </summary>
public int Size { get; private set; }
/// <summary>
/// Max Lookahead
/// </summary>
public int MaxLookahead { get; }
/// <summary>
/// Alignment
/// </summary>
public int Alignment { get; }
/// <summary>
/// Media Object Size Info
/// </summary>
public MediaObjectSizeInfo(int size, int maxLookahead, int alignment)
{
Size = size;
MaxLookahead = maxLookahead;
Alignment = alignment;
}
/// <summary>
/// ToString
/// </summary>
public override string ToString()
{
return $"Size: {Size}, Alignment {Alignment}, MaxLookahead {MaxLookahead}";
}
}
}