mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
52 lines
1.0 KiB
C#
52 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace CUETools.Codecs
|
|
{
|
|
public class DummyWriter : IAudioDest
|
|
{
|
|
AudioPCMConfig _pcm;
|
|
|
|
public DummyWriter(string path, AudioPCMConfig pcm)
|
|
{
|
|
_pcm = pcm;
|
|
}
|
|
|
|
public void Close()
|
|
{
|
|
}
|
|
|
|
public void Delete()
|
|
{
|
|
}
|
|
|
|
public long FinalSampleCount
|
|
{
|
|
set { }
|
|
}
|
|
|
|
public AudioEncoderSettings Settings
|
|
{
|
|
get
|
|
{
|
|
return new AudioEncoderSettings();
|
|
}
|
|
set
|
|
{
|
|
if (value != null && value.GetType() != typeof(AudioEncoderSettings))
|
|
throw new Exception("Unsupported options " + value);
|
|
}
|
|
}
|
|
|
|
public AudioPCMConfig PCM
|
|
{
|
|
get { return _pcm; }
|
|
}
|
|
|
|
public void Write(AudioBuffer buff)
|
|
{
|
|
}
|
|
|
|
public string Path { get { return null; } }
|
|
}
|
|
}
|