Пример #1
0
        public override void RecordFrame(RecordingSession session)
        {
            var audioInput = (AudioInput)m_Inputs[0];

            if (!audioInput.audioSettings.preserveAudio)
            {
                return;
            }

            m_Encoder.AddSamples(audioInput.mainBuffer);
        }
        protected internal override void RecordFrame(RecordingSession session)
        {
            var audioInput = (UnityAudioInput)m_Inputs[0];

            if (!audioInput.audioSettings.PreserveAudio)
            {
                return;
            }

            m_Encoder.AddSamples(audioInput.mainBuffer);
        }