// Update is called once per frame void LateUpdate() { if (!started) { soundfield.Play(); started = true; } }
private void Update() { _test += Time.deltaTime; if (_test >= 1) { _test = 0; Debug.Log("D: " + (_soundField.time - (_mediaPlayer.Control.GetCurrentTimeMs() / 1000))); } if (_ready) { if (_httpStreamSynchroniser.BufferShortage) { _soundField.Pause(); _mediaPlayer.Pause(); } else if ((!_soundField.isPlaying || !_mediaPlayer.Control.IsPlaying())) { _mediaPlayer.Play(); _soundField.Play(); } } }