Example #1
0
        public void BuildSeekTableOneChannel(Endianness endianness)
        {
            short[]       expected = { 0, 0, 50, 49, 100, 99 };
            GcAdpcmFormat adpcm    = GetAscendingAdpcm(50, 112, 0);

            Assert.Equal(expected.ToByteArray(endianness), adpcm.BuildSeekTable(3, endianness));
        }
Example #2
0
        public void BuildSeekTableFourChannelsTruncated(Endianness endianness)
        {
            short[] expected =
            {
                0,   0,   0,  0,   0,   0,   0, 0,
                50, 49, 100, 99, 250, 249, 150, 149
            };
            GcAdpcmFormat adpcm = GetAscendingAdpcm(50, 112, 0, 50, 200, 100);

            Assert.Equal(expected.ToByteArray(endianness), adpcm.BuildSeekTable(2, endianness));
        }