using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace NAudio.Wave.Compression { /// /// ACM Format /// public class AcmFormat { private readonly AcmFormatDetails formatDetails; private readonly WaveFormat waveFormat; internal AcmFormat(AcmFormatDetails formatDetails) { this.formatDetails = formatDetails; waveFormat = WaveFormat.MarshalFromPtr(formatDetails.waveFormatPointer); } /// /// Format Index /// public int FormatIndex { get { return formatDetails.formatIndex; } } /// /// Format Tag /// public WaveFormatEncoding FormatTag { get { return (WaveFormatEncoding)formatDetails.formatTag; } } /// /// Support Flags /// public AcmDriverDetailsSupportFlags SupportFlags { get { return formatDetails.supportFlags; } } /// /// WaveFormat /// public WaveFormat WaveFormat { get { return waveFormat; } } /// /// WaveFormat Size /// public int WaveFormatByteSize { get { return formatDetails.waveFormatByteSize; } } /// /// Format Description /// public string FormatDescription { get { return formatDetails.formatDescription; } } } }