The IDirectMusicPerformance::SetPrepareTime method sets the interval between the time the IDirectMusicTrack::Play method is called and when the messages should actually be heard through the speaker.
HRESULT SetPrepareTime(
DWORD dwMilliSeconds
);
The method returns S_OK.
For an overview, see Timing.
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.
IDirectMusicPerformance::GetPrepareTime, IDirectMusicPerformance::SetBumperLength