CSS Logo XNACS1Lib Library Documentation
XNACS1Base.PlayBackgroundAudio Method 

Game-Themed Introductory Programming Project   

Plays the specific audo file name continuously as the background audio.

public static void PlayBackgroundAudio(
   String bgAudio,
   Single level
);

Parameters

bgAudio
Name of the file to be used as background music.
level
The loudness of bg music (1.0 is loudest, 0.0 is silent).

Remarks

Pass in a null string (null) to stop the background audio.

See Also

XNACS1Base Class | XNACS1Lib Namespace