WaveBank Constructor (AudioEngine, String)
Initializes a new, in-memory instance of this class using a specified AudioEngine and path to a wave bank file.
Syntax
'Declaration
Public Sub New ( _
audioEngine As AudioEngine, _
nonStreamingWaveBankFilename As String _
)
public WaveBank (
AudioEngine audioEngine,
string nonStreamingWaveBankFilename
)
public:
WaveBank(
AudioEngine audioEngine,
String nonStreamingWaveBankFilename
)
Parameters
- audioEngine
Type: AudioEngine
Instance of an AudioEngine to associate this wave bank with. - nonStreamingWaveBankFilename
Type: String
Path to the wave bank file to load.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | The audioEngine or nonStreamingWaveBankFilename parameter is null. |
InvalidOperationException | Unable to create the WaveBank resource. |
Remarks
This constructor generates an in-memory version of a wave bank. The entire wave bank contents are held in memory.
Requirements
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
WaveBank Class
WaveBank Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Windows Phone