void OnAudioFilterRead(float[] data, int channels) { if (mMovie == null) { for (int i = 0; i < data.Length; i++) { data [i] = 0; } return; } int SampleCount = data.Length / channels; float SampleCountf = SampleCount; float SampleRate = mAudioSampleRate; float Duration = SampleRate / SampleCountf; //Debug.Log ("duration=" + Duration); //Debug.Log ("Time diff = " + (mRealTime - mTime)); uint StartTime = mMovie.GetTimeMs(); mMovie.GetAudioBuffer(data, channels, StartTime, mAudioStreamIndex); }