Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 2.46 KB

README.txt

File metadata and controls

54 lines (41 loc) · 2.46 KB
 
May 27, 2013
May 27, 2013
1
May 27, 2013
May 27, 2013
2
SDL_mixer 2.0
May 27, 2013
May 27, 2013
3
4
5
6
7
8
The latest version of this library is available from:
http://www.libsdl.org/projects/SDL_mixer/
Due to popular demand, here is a simple multi-channel audio mixer.
It supports 8 channels of 16 bit stereo audio, plus a single channel
Oct 21, 2017
Oct 21, 2017
9
of music.
May 27, 2013
May 27, 2013
10
11
12
13
14
See the header file SDL_mixer.h and the examples playwave.c and playmus.c
for documentation on this mixer library.
The mixer can currently load Microsoft WAVE files and Creative Labs VOC
Oct 21, 2017
Oct 21, 2017
15
16
17
18
19
files as audio samples, it can load FLAC files with libFLAC, it can load
Ogg Vorbis files with Ogg Vorbis or Tremor libraries, it can load MP3 files
using mpg123, SMPEG or libmad, and it can load MIDI files with Timidity,
FluidSynth, and natively on Windows, Mac OSX, and Linux, and finally it can
load the following file formats via ModPlug or MikMod: .MOD .S3M .IT .XM.
May 27, 2013
May 27, 2013
20
21
22
Tremor decoding is disabled by default; you can enable it by passing
--enable-music-ogg-tremor
Oct 17, 2017
Oct 17, 2017
23
to configure, or by defining MUSIC_OGG and OGG_USE_TREMOR.
May 27, 2013
May 27, 2013
24
25
26
libmad decoding is disabled by default; you can enable it by passing
--enable-music-mp3-mad
Oct 17, 2017
Oct 17, 2017
27
to configure, or by defining MUSIC_MP3_MAD
May 27, 2013
May 27, 2013
28
29
30
31
32
33
34
35
36
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
WARNING: The license for libmad is GPL, which means that in order to
use it your application must also be GPL!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The process of mixing MIDI files to wave output is very CPU intensive,
so if playing regular WAVE files sound great, but playing MIDI files
sound choppy, try using 8-bit audio, mono audio, or lower frequencies.
Oct 21, 2017
Oct 21, 2017
37
38
39
40
41
42
43
To play MIDI files using FluidSynth, you'll need to set the SDL_SOUNDFONTS
environment variable to a Sound Font 2 (.sf2) file containing the musical
instruments you want to use for MIDI playback.
(On some Linux distributions you can install the fluid-soundfont-gm package)
To play MIDI files using Timidity, you'll need to get a complete set of
GUS patches from:
May 27, 2013
May 27, 2013
44
45
46
http://www.libsdl.org/projects/mixer/timidity/timidity.tar.gz
and unpack them in /usr/local/lib under UNIX, and C:\ under Win32.
Oct 21, 2017
Oct 21, 2017
47
48
49
50
51
52
iOS:
In order to use this library on iOS, you should include the SDL.xcodeproj
and Xcode-iOS/SDL_mixer.xcodeproj in your application, add the SDL/include
and SDL_mixer directories to your "Header Search Paths" setting, then add the
libSDL2.a and libSDL2_mixer.a to your "Link Binary with Libraries" setting.
Jun 28, 2013
Jun 28, 2013
53
This library is under the zlib license, see the file "COPYING.txt" for details.
May 27, 2013
May 27, 2013
54