mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Refactoring codecs infrastructure:
AudioWriterSettings passed to IAdioDest constructors now AudioWriterSettings now includes AudioPCMConfig
This commit is contained in:
@@ -79,7 +79,7 @@ namespace CUETools.TestCodecs
|
||||
AudioBuffer buff = WAVReader.ReadAllSamples("test.wav", null);
|
||||
ALACWriter target;
|
||||
|
||||
target = new ALACWriter("alacwriter1.m4a", null, buff.PCM);
|
||||
target = new ALACWriter("alacwriter1.m4a", null, new ALACWriterSettings() { PCM = buff.PCM });
|
||||
target.Settings.Padding = 1;
|
||||
target.Vendor = "CUETools";
|
||||
target.CreationTime = DateTime.Parse("15 Aug 1976");
|
||||
@@ -88,7 +88,7 @@ namespace CUETools.TestCodecs
|
||||
target.Close();
|
||||
CollectionAssert.AreEqual(File.ReadAllBytes("alac.m4a"), File.ReadAllBytes("alacwriter1.m4a"), "alacwriter1.m4a doesn't match.");
|
||||
|
||||
target = new ALACWriter("alacwriter0.m4a", null, buff.PCM);
|
||||
target = new ALACWriter("alacwriter0.m4a", null, new ALACWriterSettings() { PCM = buff.PCM });
|
||||
target.Settings.Padding = 1;
|
||||
target.Vendor = "CUETools";
|
||||
target.CreationTime = DateTime.Parse("15 Aug 1976");
|
||||
|
||||
Reference in New Issue
Block a user