Creates new audio controller for working with sound.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XAudioController AddAudio(
	string fileName,
	bool autorun
)

Parameters

fileName
Type: System..::.String
Audio file.
autorun
Type: System..::.Boolean
Enables or disables the automatic playback of the audio after creating one.

Return Value

Returns the XAudioController audio controller.

Exceptions

ExceptionCondition
System..::.ArgumentNullException fileName is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also