mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
FLACCL, Flake & Converter: support for --ignore-chunk-sizes
This commit is contained in:
@@ -74,6 +74,11 @@ namespace CUETools.Codecs
|
||||
public string Path { get { return _path; } }
|
||||
|
||||
public WAVReader(string path, Stream IO)
|
||||
: this(path, IO, false)
|
||||
{
|
||||
}
|
||||
|
||||
public WAVReader(string path, Stream IO, bool ignore_chunk_sizes)
|
||||
{
|
||||
_path = path;
|
||||
_IO = IO != null ? IO : new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 0x10000, FileOptions.SequentialScan);
|
||||
@@ -81,7 +86,7 @@ namespace CUETools.Codecs
|
||||
|
||||
ParseHeaders();
|
||||
|
||||
if (_dataLen < 0)
|
||||
if (_dataLen < 0 || ignore_chunk_sizes)
|
||||
_sampleLen = -1;
|
||||
else
|
||||
_sampleLen = _dataLen / pcm.BlockAlign;
|
||||
|
||||
Reference in New Issue
Block a user