Exemplo n.º 1
0
        public void SetGlobalVariable(string name, float value)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }

            ushort variable = FAudio.FACTAudioEngine_GetGlobalVariableIndex(
                handle,
                name
                );

            if (variable == FAudio.FACTVARIABLEINDEX_INVALID)
            {
                throw new InvalidOperationException(
                          "Invalid variable name!"
                          );
            }

            FAudio.FACTAudioEngine_SetGlobalVariable(
                handle,
                variable,
                value
                );
        }