DMBoids is a version of Boids that adds DirectMusic support. As objects fly over a simple landscape, the music responds to user input and events on the screen.
Source: (SDK root)\Samples\Multimedia\Dmusic\Src\DMBoids
Executable: (SDK root)\Samples\Multimedia\DMusic\Bin
Press F10 to access the main menu. The Drivers menu allows you to change the driver, device, and video mode. The application runs only in full-screen modes.
The A (alignment), C (cohesion) and O (obstacle) keys alter behavior of the boids in various ways as long as they are held down.
Hold down the S key or the spacebar and the birds flock in closer. Release the key and they spread apart. Note the use of motifs to track this behavior.
Hold down the M key and the birds wander off their path. Notice that the music completely changes. Release and the birds will eventually get back on the path.
Press the ESC key to quit.
DirectMusic features illustrated include the following: