SoundBank Constructor

Initializes a new instance of this class using a sound bank from file.

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

public SoundBank (
         AudioEngine audioEngine,
         string filename
)

Parameters

audioEngine
Type: AudioEngine
Audio engine that will be associated with this sound bank.
filename
Type: String
Path to the sound bank file.

Exception typeCondition
ArgumentNullException The audioEngine or filename parameter is null.
ArgumentException XACT could not load the data provided. Make sure you are using the correct version of the XACT tool.
InvalidOperationException Unable to create the SoundBank resource.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: