/// <summary> /// update samples data /// </summary> private void UpdateSamples() { try { m_audio.GetSample(m_leftChannelSamples, 0, m_fftWindow); m_audio.GetSample(m_rightChannelSamples, 1, m_fftWindow); AdjustSamples(); } catch (System.Exception e) { Debug.Log(e.Message); } }