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)
Syntax
public SoundBank (
AudioEngine audioEngine,
string filename
)
Parameters
- audioEngine
Audio engine that will be associated with this sound bank. - filename
Path to the sound bank file.
Exceptions
Exception type | Condition |
---|---|
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. |
See Also
Reference
SoundBank Class
SoundBank Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista