Creates new audio controller for working with sound.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public XAudioController AddAudio( Object audioIndex, string fileName, bool autorun ) |
Parameters
- audioIndex
- Type: System..::.Object
Key for accessing the audio.
- 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | fileName is nullNothingnullptra null reference (Nothing in Visual Basic). |