ECE291

Computer Engineering II

Lockwood, Fall 1997

FINAL PROJECT

GRAPHICS AND SOUND
DEMO

BY:

PABLO VENTURINI

AND

KEN SMITH

Introduction

This project isbe an interactive graphics/sound program. The objective of the program is to display 320 X 200 VGA graphics and animate objects, as well as implementing sound by playing *.WAV and MIDI files. The program provides a graphical interface for the user to choose between themes to be displayed as well as music (MIDI files).

User Interface

The user has a visual interface to choose the types of backgrounds, and music he or she desires. The menu will be displayed in test mode video and it will also be keyboard driven

 

Video Graphics

The video graphics of this program will involve some aspects of mp4 and mp5, but there will be added features. The double-buffering technique used in the last two mp's will be used in order to reduce the amount of screen flickering. Images will be loaded to a temporary buffer then moved to the screen via a procedure (MoveScreen).

Several segments will be defined to allocate memory for buffers:

There are several options to display on the screen. The animation routines will all transfer image data to a buffer after they have "animated" the image. Finally, a new MoveScreen will be used to move the image data stored in the buffer to the VRAM of the video card (at A0000h) and hence to the screen.

 

Sound

This program can play sounds as well as music. Sound are associated with the objects and with the animation in order to give a good affect. Sounds will be mostly (*.WAV) sound files as well as some MIDI. The MIDI sounds are played by implementing the Midpak file. The sounds will be programmed for a SoundBlaster.

This program was fun to code. Although we didn't finish it completely, it turned out alright.