Microsoft DirectX 8.1 (C++)

Building DirectX Audio Projects

Projects need to include the Dmusici.h header file, which contains declarations for the DirectMusic performance layer. Including this file will bring in three other essential headers:

Dmusicf.h contains file structures and defines, and is needed only for applications such as music-authoring tools that work directly with files and don't rely solely on the loaders built into DirectMusic.

Dmksctrl.h contains declarations for the IKsControl interface used for port property sets. You do not need this file if you have the Ksproxy.h and Ks.h files.

Dmplugin.h contains declarations for the IDirectMusicTool8 and IDirectMusicTrack8 interfaces, which are implemented by add-ons for advanced applications that need specialized message-processing tools and track types. Most applications do not use this part of the DirectMusic API.

If you are using the DirectSound API directly and want to be able to use helper functions such as DirectSoundCreate8, be sure to link to Dsound.lib and include the appropriate folder in the library search path.

You must also ensure that your application has access to the GUIDs used by DirectX Audio. Define INITGUID before all other preprocessor directives, or link to Dxguid.lib.

DirectX Audio uses the multithreading capabilities of the Windows 32-bit operating system. Multithreading allows DirectX to generate, process, and synthesize music in the background while your application is accomplishing other tasks. You should develop your project with multithreading in mind. If nothing else, be sure to link with the multithreaded libraries.