![]() |
The Compression/Streaming tab of the Wave Component Properties window is shown in the following figure.
The tab has the following settings:
If selected, the wave is compressed using the format selected in the Type and Attributes lists. This check box cannot be selected unless a valid format has already been selected. Deselect the check box to restore the wave to its original, uncompressed size.
Compression type. The choices in the drop-down list depend on what codecs (compression/decompression algorithms) are installed on the computer. DirectMusic Producer does not install the codecs that you see in the list. The codec you choose must also be available on the system that plays the file, so that DirectMusic can decompress the wave.
Note If you use Windows Media Audio (WMA) compression, append the sample with blank space at the end. Otherwise the sample can be truncated.
WMA compression is available only for waves in DLS collections.
Format of the compressed data, specifying samples per second, bits per sample, and number of channels. The formats shown are those supported by the codec selected in the Type drop-down list. Some codecs do not allow you to specify a different format than the original. If you are using stereo waves in a DLS collection, the mono conversion formats shown apply to each channel individually. If a stereo wave is outside of a DLS collection, only stereo formats are available.
Current size of the wave, in bytes.
Ratio of the compressed size to the uncompressed size.
Not implemented.
If selected, the wave is downloaded to the synthesizer in chunks, as needed, rather than all at once.
Do not prepare any data for playback when the wave is downloaded. Check this box to save memory resources when a large number of waves are being downloaded.
Size of chunks to be downloaded when the wave is streaming, in milliseconds. This value should be set to at least 500. Setting the time to something less than 500 ms will result in a beat of silence when either the end of a segment loop falls within the streaming wave portion, or the segment transitions to itself within the streaming wave.