IDirectMusicBand8::CreateSegment

DirectMusic

Microsoft DirectX 9.0 SDK Update (Summer 2004)

IDirectMusicBand8::CreateSegment

The CreateSegment method creates a segment object that can be played to dynamically perform the volume, pan, transposition, and patch change commands in the band.

Syntax

HRESULT CreateSegment(
  IDirectMusicSegment** ppSegment
);

Parameters

ppSegment

Address of a variable that receives a pointer to the created segment.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return one of the error values shown in the following table.

Return code
E_FAIL
E_OUTOFMEMORY
E_POINTER

Requirements

  Header: Declared in dmusici.h.

See Also


© 2004 Microsoft Corporation. All rights reserved.