Microsoft DirectX 8.0 (C++) |
Sets the length, in music time, of the segment. This method is usually called by the loader, which retrieves the segment length from the file and passes it to the segment object.
HRESULT SetLength( MUSIC_TIME mtLength );
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values:
E_INVALIDARG |
DMUS_E_OUT_OF_RANGE |
Neglecting to set a primary segment length can cause problems when cueing other primary segments with the DMUS_SEGF_QUEUE flag.
Header: Declared in dmusici.h.