DirectX SDK

IDirectMusicPerformance::SetPrepareTime

The IDirectMusicPerformance::SetPrepareTime method sets the interval between the time that the IDirectMusicTrack::Play method is called and the time at which the messages should be heard through the speakers.

HRESULT SetPrepareTime(
  DWORD dwMilliSeconds
);

Parameters

dwMilliSeconds
Amount of prepare time, in milliseconds. The default value is 1000.

Return Values

The method returns S_OK.

Remarks

For an overview, see Timing.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusici.h.

See Also

IDirectMusicPerformance::GetPrepareTime, IDirectMusicPerformance::SetBumperLength