コード例 #1
0
        public void ResetState()
        {
            int s;

            subframe_mem[0] = subframe_mem[1] = subframe_mem[2] = 0;
            if (surround != 0)
            {
                Arrays.MemSetInt(preemph_mem, 0, layout.nb_channels);
                Arrays.MemSetInt(window_mem, 0, layout.nb_channels * 120);
            }
            int encoder_ptr = 0;

            for (s = 0; s < layout.nb_streams; s++)
            {
                OpusEncoder enc = encoders[encoder_ptr++];
                enc.ResetState();
            }
        }