38 lines
855 B
C#
38 lines
855 B
C#
using System;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace NAudio.Wave
|
|
{
|
|
/// <summary>
|
|
/// A wave file reader supporting cue reading
|
|
/// </summary>
|
|
public class CueWaveFileReader : WaveFileReader
|
|
{
|
|
private CueList cues;
|
|
|
|
/// <summary>
|
|
/// Loads a wavefile and supports reading cues
|
|
/// </summary>
|
|
/// <param name="fileName"></param>
|
|
public CueWaveFileReader(string fileName)
|
|
: base(fileName)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Cue List (can be null if cues not present)
|
|
/// </summary>
|
|
public CueList Cues
|
|
{
|
|
get
|
|
{
|
|
if (cues == null)
|
|
{
|
|
cues = CueList.FromChunks(this);
|
|
}
|
|
return cues;
|
|
}
|
|
}
|
|
}
|
|
}
|