Exemplo n.º 1
0
        } //END StopRecordingAudio

        //--------------------------------------------------------------//
        /// <summary>
        /// Called automatically by Unity Editor, passes in the audio data this AudioListener/AudioSource is hearing/sending
        /// </summary>
        /// <param name="samples"></param>
        /// <param name="channels"></param>
        public void OnAudioFilterRead( float[] samples, int channels )
        //--------------------------------------------------------------//
        {

#if NATCORDER
            //If the BlockEventRecorder reference exists, send the samples
            if( blockEventRecorder != null )
            {
                blockEventRecorder.InternalAudioSampleRecieved( samples, Frame.CurrentTimestamp );
            }
#endif

        } //END OnAudioFilterRead