www.pudn.com > vmix_1.013.zip > README


Here is a piece of source code to do wave mix using VBE/AI.  You 
can get the full vaisdk.zip from x2ftp.oulu.fi in dir 
 
/pub/msdos/programming/libs 
 
Please refer to the original vaisdk for terms and rights for the 
VBE/AI source code.  All modifications are done by Joel Chen. 
 
You are free to use my modifications for both pd/commercial purposes 
without any restriction. I am not responsible for anything, even 
imaginery; you get the idea.  If you don't and think that you will kick 
my *** sometime because you would consider that this thing caused you 
major problem, delete this whole thing now. 
 
The executable is a modification of the demo program I got from a 
mode-x lib package by Matt Pritchard to demostrate the midi 
player and the wave player.  MIDI player is the original midi 
player from the vaisdk package.  Wave player is the version I 
changed to do mixing outputs. 
 
Here are some quick info about the demo program: 
 
I got rid of all the demos for different modes but 360x240.  I 
also changed the animation demo to 360x240 without panning.  The 
maximum number of sprites on screen is 80. 
 
You can supply any number of MID and WAV files in the command 
line; order doesn't matter.  Pressing ESC will play the next MID 
file or loop around. Pressing number 0 through 9 will play the 
correspond WAV file. The program will play the first WAV at the 
open screen. 
 
The text on screen display mouse x, y and mouse button status. 
The mouse code was from XLIB.  I also took the retrace routine 
from HOBBES Xmode library. 
 
Press Left button will play zeroth WAV and right the first really 
fast.  Press Alt+Q to quit the program and press Alt+A to clear 
all sounds in the playing queue. 
 
Both MIDI player and the WAVE player crashes with XLIB.  I don't 
know what's wrong.  If you got a stable version to work, let me 
know. 
 
At the end, I want thank all the helpful and nice poeple for the 
info on mixing waves. 
 
joel... 
 
chenxj@cs.ucdavis.edu 
xjchen@ucdavis.edu 
xjchen@engr.ucdavis.edu 
chenxje@ece.ucdavis.edu 
 
^- pick one if you want to mail me. :)  They will all go to the 
first one though. 
 
 
Jan 22, 1996