コード例 #1
0
 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));
 }
コード例 #2
0
ファイル: WaveSoundData.cs プロジェクト: remy22/DeltaEngine
 private void ConvertMsAdpcmToPcm()
 {
     var converter = new MsAdpcmConverter(Channels, extensionSamplesPerBlock, blockAlign);
     BufferData = converter.ConvertToPcm(BufferData);
 }
コード例 #3
0
        private void ConvertMsAdpcmToPcm()
        {
            MsAdpcmConverter converter = new MsAdpcmConverter(Channels, extensionSamplesPerBlock, blockAlign);

            BufferData = converter.ConvertToPcm(BufferData);
        }