DirectMusic is a deprecated[1] component of the MicrosoftDirectX API that allows music and sound effects to be composed and played and provides flexible interactive control over the way they are played. Architecturally, DirectMusic is a high-level set of objects, built on top ofDirectSound, that allow the programmer to play sound and music without needing to get quite as low-level as DirectSound.DirectSound allows for the capture and playback of digital sound samples, whereas DirectMusic works with message-based musical data. Music can be synthesized either in hardware, in theMicrosoft GS Wavetable SW Synth, or in a custom synthesizer.
DirectMusic was first released by Microsoft in 1996 as anActiveX control called Interactive Music Architecture (IMA).[2] It was introduced as part of the 6.1 version of theDirectX library in February 1999 and is included in allMicrosoft Windows operating systems starting with Windows 98 Second Edition. DirectMusic has since been deprecated, and is not available to 64-bit applications inWindows Vista.[1] InWindows 7, native 64-bit support is available for the core DirectMusic API related to timestamped MIDI but not for the performance component.[3]
DirectMusic provides a complete system for implementingdynamic soundtracks that take advantage ofhardware acceleration,Downloadable Sounds (DLS),DirectX Media Objects (DMOs), advanced 3D positioning effects and several other features. DirectMusic provides composition and playback of dynamic musical soundtracks based on stored compositional material. Rather than a static playback, the music is generated on the fly, and is played with variations, and can respond to flexible program events. Using DirectMusic, it is possible to:
To ensure DirectMusic functions such asMicrosoft GS Wavetable SW Synth work correctly, aWDM sound driver is recommended.
OnWindows Vista, DirectMusic uses onlysoftware synthesis. Also, the DirectMusic kernel mode synthesizer that supplies the DirectMusic components with a high-resolution timer has been removed.[6] Also, since Windows Vista, theWASAPI shared mode does not support hardware acceleration.
Windows 10 supporthardware offloading ofsound effects.[7][8]
{{cite web}}:|archive-url= is malformed: timestamp (help)CS1 maint: url-status (link)