Platform SDK: DirectX |
The IDirectMusicPerformance::SetParam method sets data on a track inside the control segment.
HRESULT SetParam( REFGUID rguidType, DWORD dwGroupBits, DWORD dwIndex, MUSIC_TIME mtTime, void* pParam );
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the following error values:
DMUS_E_NO_MASTER_CLOCK |
DMUS_E_SET_UNSUPPORTED |
DMUS_E_TRACK_NOT_FOUND |
E_POINTER |
Normally the primary segment is the control segment. However, a secondary segment can be designated as the control segment when it is played. See DMUS_SEGF_FLAGS.
For an explanation of dwGroupBits and dwIndex, see Identifying the Track.
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::GetParam, IDirectMusicPerformance::SetGlobalParam, IDirectMusicSegment::SetParam, IDirectMusicTrack::SetParam, IDirectMusicPerformance::GetTime, Music Parameters