mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Refactoring: moved Padding and BlockSize from IAudioDest to AudioEncoderSettings;
This commit is contained in:
@@ -71,11 +71,6 @@ namespace CUETools.Codecs.LossyWAV
|
||||
}
|
||||
}
|
||||
|
||||
public long BlockSize
|
||||
{
|
||||
set { }
|
||||
}
|
||||
|
||||
public AudioEncoderSettings Settings
|
||||
{
|
||||
get
|
||||
@@ -89,11 +84,6 @@ namespace CUETools.Codecs.LossyWAV
|
||||
}
|
||||
}
|
||||
|
||||
public long Padding
|
||||
{
|
||||
set { }
|
||||
}
|
||||
|
||||
public AudioPCMConfig PCM
|
||||
{
|
||||
get { return _pcm; }
|
||||
@@ -488,8 +478,8 @@ namespace CUETools.Codecs.LossyWAV
|
||||
string factString = "lossyWAV " + version_string + " @ " + datestamp + ", " + parameter_string + "\r\n\0";
|
||||
if (_audioDest != null && _audioDest is WAVWriter) ((WAVWriter)_audioDest).WriteChunk(fccFact, new ASCIIEncoding().GetBytes(factString));
|
||||
if (_lwcdfDest != null && _lwcdfDest is WAVWriter) ((WAVWriter)_lwcdfDest).WriteChunk(fccFact, new ASCIIEncoding().GetBytes(factString));
|
||||
if (_audioDest != null) _audioDest.BlockSize = codec_block_size;
|
||||
if (_lwcdfDest != null) _lwcdfDest.BlockSize = codec_block_size * 2;
|
||||
if (_audioDest != null) _audioDest.Settings.BlockSize = codec_block_size;
|
||||
if (_lwcdfDest != null) _lwcdfDest.Settings.BlockSize = codec_block_size * 2;
|
||||
}
|
||||
|
||||
double fill_fft_input(int actual_analysis_block_start, int this_fft_length, int channel)
|
||||
|
||||
Reference in New Issue
Block a user