public void ConvertToPcm() { var converter = new MsAdpcmConverter(1, 4, 8); byte[] sourceData = GenerateTestData(); byte[] result = converter.ConvertToPcm(sourceData); Assert.AreEqual(16383, BitConverter.ToInt16(result, 0)); Assert.AreEqual(32767, BitConverter.ToInt16(result, 2)); Assert.AreEqual(28743, BitConverter.ToInt16(result, 4)); Assert.AreEqual(29749, BitConverter.ToInt16(result, 6)); }
private void ConvertMsAdpcmToPcm() { var converter = new MsAdpcmConverter(Channels, extensionSamplesPerBlock, blockAlign); BufferData = converter.ConvertToPcm(BufferData); }
private void ConvertMsAdpcmToPcm() { MsAdpcmConverter converter = new MsAdpcmConverter(Channels, extensionSamplesPerBlock, blockAlign); BufferData = converter.ConvertToPcm(BufferData); }