Export (0) Print
Expand All

AudioEngine.SetGlobalVariable Method

Sets the value of a global variable.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public void SetGlobalVariable (
         string name,
         float value
)

Parameters

name
Value of the global variable.
value
Friendly name of the global variable.

A global variable has global scope. It can be accessed by all code within a project.

Exception typeCondition
ArgumentNullException The name parameter is null.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

ADD
Show:
© 2014 Microsoft