Platform SDK: DirectX

DirectMusicBand.CreateSegment

The DirectMusicBand.CreateSegment method creates a DirectMusicSegment object that can be used to perform the volume, pan, transposition, and patch change commands in the band dynamically, using the DirectMusicPerformance.PlaySegment method.

object.CreateSegment() As DirectMusicSegment

Parameters

object
Object expression that resolves to a DirectMusicBand object.

Return Values

If the method succeeds, it returns a DirectMusicSegment 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_OUTOFMEMORY