slouken@22
|
1 |
|
slouken@86
|
2 |
SDL_mixer 1.2
|
slouken@0
|
3 |
|
slouken@51
|
4 |
The latest version of this library is available from:
|
slouken@86
|
5 |
http://www.libsdl.org/projects/SDL_mixer/
|
slouken@51
|
6 |
|
slouken@0
|
7 |
Due to popular demand, here is a simple multi-channel audio mixer.
|
slouken@48
|
8 |
It supports 8 channels of 16 bit stereo audio, plus a single channel
|
slouken@0
|
9 |
of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
|
slouken@0
|
10 |
libraries.
|
slouken@0
|
11 |
|
slouken@29
|
12 |
See the header file SDL_mixer.h and the examples playwave.c and playmus.c
|
slouken@0
|
13 |
for documentation on this mixer library.
|
slouken@0
|
14 |
|
slouken@91
|
15 |
The mixer can currently load Microsoft WAVE files and Creative Labs VOC
|
slouken@91
|
16 |
files as audio samples, and can load MIDI files via Timidity and the
|
slouken@147
|
17 |
following music formats via MikMod: .MOD .S3M .IT .XM. It can load
|
slouken@353
|
18 |
Ogg Vorbis streams as music if built with Ogg Vorbis or Tremor libraries,
|
slouken@147
|
19 |
and finally it can load MP3 music using the SMPEG library.
|
slouken@0
|
20 |
|
slouken@353
|
21 |
Tremor decoding is disabled by default, you can enable it by passing
|
slouken@353
|
22 |
--enable-music-ogg-tremor
|
slouken@353
|
23 |
to configure, or by defining OGG_MUSIC and OGG_USE_TREMOR.
|
slouken@353
|
24 |
|
slouken@0
|
25 |
The process of mixing MIDI files to wave output is very CPU intensive,
|
slouken@0
|
26 |
so if playing regular WAVE files sound great, but playing MIDI files
|
slouken@0
|
27 |
sound choppy, try using 8-bit audio, mono audio, or lower frequencies.
|
slouken@0
|
28 |
|
slouken@0
|
29 |
To play MIDI files, you'll need to get a complete set of GUS patches
|
slouken@29
|
30 |
from:
|
slouken@86
|
31 |
http://www.libsdl.org/projects/mixer/timidity/timidity.tar.gz
|
slouken@0
|
32 |
and unpack them in /usr/local/lib under UNIX, and C:\ under Win32.
|
slouken@0
|
33 |
|
slouken@137
|
34 |
This library is available under the GNU Library General Public License,
|
slouken@137
|
35 |
see the file "COPYING" for details.
|
slouken@0
|
36 |
|