예제 #1
0
 // Update is called once per frame
 void LateUpdate()
 {
     if (!started)
     {
         soundfield.Play();
         started = true;
     }
 }
예제 #2
0
    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();
            }
        }
    }