Microsoft DirectX 9.0


The loader, represented by the IDirectMusicLoader8 interface, is an object that gets other objects. It is generally one of the first objects created in a DirectMusic application. The loader is used to load all audio content, including DirectMusic segment files, DLS collections, MIDI files, and WAV files. It can also load data stored in resources or application memory.

Any object that encapsulates data from a file or resource supports the IDirectMusicObject8 interface. The loader gets this interface and then uses it to initiate the process of streaming the data into an object in your application. Data objects parse themselves through their implementations of IPersistStream, and the entire loading process is carried out automatically. All you need to do is pass a description of the object to the loader, along with a request for the desired interface, such as IDirectMusicSegment8.

See Also