Windows Media Encoder SDK banner art

Sample Conditions

Following are some examples of useful conditions you can create:

(SupportsDLS1 && (SamplePlaybackRate <= 22050))

Enables use by a DLS1 synthesizer, and prevents DLS2 use of the region, because DLS2 synthesizers use a sample playback rate of 44100 or higher.

(SupportsDLS2 && (SamplePlaybackRate >= 44100))

Enables use by a DLS2 synthesizer, and prevents DLS1 use of the region, because DLS2 synthesizers use a sample playback rate of 44100 or higher.

(GMInHardware && SupportsDLS2)

Requires use by a General MIDI hardware synthesizer that supports DLS2.

((! GMInHardware) && SupportsDLS2)

The General MIDI set must not be available in hardware. The synthesizer can be hardware or software, but DLS2 support is required.


© 2000-2001 Microsoft Corporation. All rights reserved.