slouken@22
|
1 |
|
slouken@22
|
2 |
mixer 1.0
|
slouken@0
|
3 |
|
slouken@0
|
4 |
Due to popular demand, here is a simple multi-channel audio mixer.
|
slouken@0
|
5 |
It supports 4 channels of 16 bit stereo audio, plus a single channel
|
slouken@0
|
6 |
of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
|
slouken@0
|
7 |
libraries.
|
slouken@0
|
8 |
|
slouken@29
|
9 |
See the header file SDL_mixer.h and the examples playwave.c and playmus.c
|
slouken@0
|
10 |
for documentation on this mixer library.
|
slouken@0
|
11 |
|
slouken@0
|
12 |
The mixer can currently load Microsoft WAVE files as audio samples
|
slouken@0
|
13 |
and can load MIDI files via Timidity and the following music formats
|
slouken@0
|
14 |
via MikMod: .MOD .S3M .IT .XM. It can also load MP3 music using the
|
slouken@0
|
15 |
SMPEG library.
|
slouken@0
|
16 |
|
slouken@0
|
17 |
The process of mixing MIDI files to wave output is very CPU intensive,
|
slouken@0
|
18 |
so if playing regular WAVE files sound great, but playing MIDI files
|
slouken@0
|
19 |
sound choppy, try using 8-bit audio, mono audio, or lower frequencies.
|
slouken@0
|
20 |
|
slouken@0
|
21 |
To play MIDI files, you'll need to get a complete set of GUS patches
|
slouken@29
|
22 |
from:
|
slouken@29
|
23 |
http://www.devolution.com/~slouken/SDL/projectx/mixer/timidity/timidity.tar.gz
|
slouken@0
|
24 |
and unpack them in /usr/local/lib under UNIX, and C:\ under Win32.
|
slouken@0
|
25 |
|
slouken@0
|
26 |
You may add panning, reverb, echo, whatever, but if you do, please
|
slouken@0
|
27 |
mail changes back to me, Sam Lantinga at slouken@devolution.com
|
slouken@0
|
28 |
|
slouken@0
|
29 |
This library is available under the GNU Library General Public License.
|
slouken@0
|
30 |
|