示例#1
0
    void Update()
    {
        if (_movie.MovieInstance != null)
        {
            // Generate audio matrix values
            _parent.UpdateAudioMatrix(Position, ref _audioMatrixValues);

            // Apply matrix values to movie instance

            /*for (int i = 0; i < _audioMatrixValues.Length; i++)
             *      Debug.Log("v " + i + " " + _audioMatrixValues[i]);
             * Debug.Log("apply to " + _movie.MovieInstance.Handle);*/
            AVProWindowsMediaPlugin.SetAudioChannelMatrix(_movie.MovieInstance.Handle, _audioMatrixValues, _audioMatrixValues.Length);
        }
    }