WaveBank.WaveBank Method (Microsoft.Xna.Framework.Audio)


Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public WaveBank(
	AudioEngine audioEngine, 
	string streamingWaveBankFilename, 
	int offset, 
	short packetsize
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

audioEngine
Type: Microsoft.Xna.Framework.Audio.AudioEngine
Instance of the AudioEngine to associate this wave bank with.
streamingWaveBankFilename
Type: System.String
Path to the .xwb to stream from.
offset
Type: System.Int32
DVD sector-aligned offset within the wave bank data file.
packetsize
Type: System.Int16
Stream packet size, in sectors, to use for each stream. The minimum value is 2.
This constructor streams wave data as needed.Note that packetsize is in sectors, which is 2048 bytes.AudioEngine.Update() must be called at least once before using data from a streaming wave bank.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web