Simple Soundtracks

Windows Media Encoder SDK banner art

In this scenario, you want to create a soundtrack based on existing content in the form of wave or MIDI files. The application does not require close interaction between the soundtrack and other other events, and the sounds are exactly the same each time they are played. Examples include background music, narration, or dialog in cut scenes.

You create segment files by importing the existing content or by recording and editing MIDI sequences within DirectMusic Producer. Multiple source files can be combined in a single segment, and sounds can overlap. You control the timing of the sounds within each segment, so there is little for the application developer to do other than starting playback of the segment at the appropriate time.

When implementing this scenario, consider the following:

  • For the simplest playback scenarios, such as looping background music, you don't need to supply DirectMusic Producer segment files. DirectMusic applications can play ordinary MIDI and wave files on standard audiopaths, and can apply effects such as reverberation.
  • By importing MIDI files into DirectMusic Producer segments, you can use existing content while adding value from features such as custom DLS collections, band changes, and nonstandard audiopaths.
  • You can also record sequences from a MIDI device, edit existing MIDI sequences, and create new sequences by entering notes in an editing window.
  • By importing multiple waves into a DirectMusic Producer segment, you can easily create a sequence of sounds with precise timing. You could do this, for example, to construct a dialog sequence from recordings of individual lines.

Concepts

How-to