DirectX SDK |
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
If the method succeeds, it returns a DirectMusicSegment object.
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 |