DirectX SDK

GUID_SeedVariations

[C++]
Track type Style and motif.
Purpose A nonzero value seeds the random number generator for variation selection. A value of 0 reverts to the default behavior of getting the seed from the system clock.
Data type (*pParam) Long.
mtTime Not used.

Remarks

Setting this parameter to nonzero is useful for testing since it ensures that the same sequence of random numbers is generated each time. The parameter should be set only once, before the track is played. The style and command track must be designed so that each time that the segment is played, the same patterns are chosen at the same places in the segment. Each loop plays different variations than the one before it, but each time the entire segment is replayed from the beginning, each loop sounds the same as the first time the segment was played.

[Visual Basic]

This topic pertains only to applications written in C++.