DirectX SDK

DirectMusicLoader.LoadBand

The DirectMusicLoader.LoadBand method loads a band from a file.

object.LoadBand(filename As String) As DirectMusicBand

Parameters

object
Object expression that resolves to a DirectMusicLoader object.
filename
Name of the file containing the band. If the file is not in the current directory or in the directory set by DirectMusicLoader.SetSearchDirectory, the full path must be given.

Return Values

If the method succeeds, it returns a DirectMusicBand object.

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DMUS_E_FAIL
DMUS_E_INVALIDARG
DMUS_E_OUTOFMEMORY
DMUS_E_INVALID_BAND
DMUS_E_LOADER_FAILEDOPEN
DMUS_E_LOADER_FAILEDCREATE
DMUS_E_LOADER_FORMATNOTSUPPORTED

See Also

DirectMusicLoader.LoadBandFromResource