void OnAudioFilterRead(float[] data, int channels) { if (!skipAudioSource) { ProcessAudioSamples(data, channels); lipDataSendModel.SendData(Frame); } }
[Inject] void Init(LipDataSendModel lipDataSendModel) { var lipSyncContext = GetComponent <OVRLipSyncContextBase>(); this.UpdateAsObservable().Subscribe(_ => { if (lipSyncContext != null) { // get the current viseme frame OVRLipSync.Frame frame = lipSyncContext.GetCurrentPhonemeFrame(); if (frame != null) { lipDataSendModel.SendData(frame); } // Update smoothing value if (smoothAmount != lipSyncContext.Smoothing) { lipSyncContext.Smoothing = smoothAmount; } } }); }
public void Update() { var lipdata = new OVRLipSync.Frame(); lipDataSendModel.SendData(lipdata); }