Due to popular demand, here is a simple multi-channel audio mixer.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Peters ac087d8aef port libtool to os2 4 months ago
VisualC first in 4 months ago
Xcode first in 4 months ago
Xcode-iOS/SDL_mixer.xcodeproj first in 4 months ago
acinclude first in 4 months ago
build-scripts first in 4 months ago
external first in 4 months ago
native_midi first in 4 months ago
timidity first in 4 months ago
.gitignore first in 4 months ago
.hgignore first in 4 months ago
.hgtags first in 4 months ago
Android.mk first in 4 months ago
CHANGES first in 4 months ago
COPYING first in 4 months ago
CWProjects.sea.bin first in 4 months ago
MPWmake.sea.bin first in 4 months ago
README first in 4 months ago
SDL_mixer.h first in 4 months ago
SDL_mixer.pc.in first in 4 months ago
SDL_mixer.qpg.in first in 4 months ago
SDL_mixer.spec.in first in 4 months ago
Watcom-OS2.zip first in 4 months ago
autogen.sh first in 4 months ago
configure.in first in 4 months ago
dynamic_flac.c first in 4 months ago
dynamic_flac.h first in 4 months ago
dynamic_fluidsynth.c first in 4 months ago
dynamic_fluidsynth.h first in 4 months ago
dynamic_mod.c first in 4 months ago
dynamic_mod.h first in 4 months ago
dynamic_mp3.c first in 4 months ago
dynamic_mp3.h first in 4 months ago
dynamic_ogg.c first in 4 months ago
dynamic_ogg.h first in 4 months ago
effect_position.c first in 4 months ago
effect_stereoreverse.c first in 4 months ago
effects_internal.c first in 4 months ago
effects_internal.h first in 4 months ago
fluidsynth.c first in 4 months ago
fluidsynth.h first in 4 months ago
gcc-fat.sh first in 4 months ago
load_aiff.c first in 4 months ago
load_aiff.h first in 4 months ago
load_flac.c first in 4 months ago
load_flac.h first in 4 months ago
load_ogg.c first in 4 months ago
load_ogg.h first in 4 months ago
load_voc.c first in 4 months ago
load_voc.h first in 4 months ago
mixer.c first in 4 months ago
music.c first in 4 months ago
music_cmd.c first in 4 months ago
music_cmd.h first in 4 months ago
music_flac.c first in 4 months ago
music_flac.h first in 4 months ago
music_mad.c first in 4 months ago
music_mad.h first in 4 months ago
music_mod.c first in 4 months ago
music_mod.h first in 4 months ago
music_modplug.c first in 4 months ago
music_modplug.h first in 4 months ago
music_mpg.c first in 4 months ago
music_mpg.h first in 4 months ago
music_ogg.c first in 4 months ago
music_ogg.h first in 4 months ago
playmus.c first in 4 months ago
playwave.c first in 4 months ago
version.rc first in 4 months ago
wavestream.c first in 4 months ago
wavestream.h first in 4 months ago

README


SDL_mixer 1.2

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
of music, mixed by the popular MikMod MOD, Timidity MIDI, and mpg123 MP3
libraries.

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
files as audio samples, and can load MIDI files via Timidity and the
following music formats via MikMod: .MOD .S3M .IT .XM. It can load
Ogg Vorbis streams as music if built with Ogg Vorbis or Tremor libraries,
and finally it can load MP3 music using the libmpeg123 or libmad libraries.

Tremor decoding is disabled by default; you can enable it by passing
--enable-music-ogg-tremor
to configure, or by defining OGG_MUSIC and OGG_USE_TREMOR.

libmad decoding is disabled by default; you can enable it by passing
--enable-music-mp3-mad
to configure, or by defining MP3_MAD_MUSIC
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.

To play MIDI files, you'll need to get a complete set of GUS patches
from:
http://www.libsdl.org/projects/mixer/timidity/timidity.tar.gz
and unpack them in /usr/local/lib under UNIX, and C:\ under Win32.

This library is under the zlib license, see the file "COPYING" for details.