Skip to content
This repository was archived by the owner on Oct 1, 2019. It is now read-only.

Commit 70b467f

Browse files
committed
Add SDL2_mixer (needs portlibs update)
1 parent de45cfc commit 70b467f

File tree

2,109 files changed

+839613
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,109 files changed

+839613
-0
lines changed

SDL2_mixer-2.0.2-wiiu/Android.mk

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Save the local path
2+
MY_LOCAL_PATH := $(call my-dir)
3+
4+
5+
# Enable this if you want to support loading FLAC music with libFLAC
6+
SUPPORT_FLAC ?= true
7+
FLAC_LIBRARY_PATH := external/flac-1.3.2
8+
9+
# Enable this if you want to support loading OGG Vorbis music via Tremor
10+
SUPPORT_OGG ?= true
11+
OGG_LIBRARY_PATH := external/libogg-1.3.2
12+
VORBIS_LIBRARY_PATH := external/libvorbisidec-1.2.1
13+
14+
# Enable this if you want to support loading MP3 music via MPG123
15+
SUPPORT_MP3_MPG123 ?= true
16+
MPG123_LIBRARY_PATH := external/mpg123-1.25.6
17+
18+
# Enable this if you want to support loading MOD music via modplug
19+
SUPPORT_MOD_MODPLUG ?= true
20+
MODPLUG_LIBRARY_PATH := external/libmodplug-0.8.9.0
21+
22+
# Enable this if you want to support TiMidity
23+
SUPPORT_TIMIDITY ?= true
24+
TIMIDITY_LIBRARY_PATH := timidity
25+
26+
27+
# Build the library
28+
ifeq ($(SUPPORT_FLAC),true)
29+
include $(MY_LOCAL_PATH)/$(FLAC_LIBRARY_PATH)/Android.mk
30+
endif
31+
32+
# Build the library
33+
ifeq ($(SUPPORT_OGG),true)
34+
include $(MY_LOCAL_PATH)/$(OGG_LIBRARY_PATH)/Android.mk
35+
include $(MY_LOCAL_PATH)/$(VORBIS_LIBRARY_PATH)/Android.mk
36+
endif
37+
38+
# Build the library
39+
ifeq ($(SUPPORT_MP3_MPG123),true)
40+
include $(MY_LOCAL_PATH)/$(MPG123_LIBRARY_PATH)/Android.mk
41+
endif
42+
43+
# Build the library
44+
ifeq ($(SUPPORT_MOD_MODPLUG),true)
45+
include $(MY_LOCAL_PATH)/$(MODPLUG_LIBRARY_PATH)/Android.mk
46+
endif
47+
48+
# Build the library
49+
ifeq ($(SUPPORT_TIMIDITY),true)
50+
include $(MY_LOCAL_PATH)/$(TIMIDITY_LIBRARY_PATH)/Android.mk
51+
endif
52+
53+
54+
# Restore local path
55+
LOCAL_PATH := $(MY_LOCAL_PATH)
56+
57+
include $(CLEAR_VARS)
58+
59+
LOCAL_MODULE := SDL2_mixer
60+
61+
LOCAL_SRC_FILES := $(notdir $(filter-out %/playmus.c %/playwave.c, $(wildcard $(LOCAL_PATH)/*.c))) \
62+
63+
LOCAL_CFLAGS :=
64+
LOCAL_LDLIBS :=
65+
LOCAL_STATIC_LIBRARIES :=
66+
LOCAL_SHARED_LIBRARIES := SDL2
67+
68+
ifeq ($(SUPPORT_FLAC),true)
69+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(FLAC_LIBRARY_PATH)/include
70+
LOCAL_CFLAGS += -DMUSIC_FLAC
71+
LOCAL_STATIC_LIBRARIES += libFLAC
72+
endif
73+
74+
ifeq ($(SUPPORT_OGG),true)
75+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(OGG_LIBRARY_PATH)/include
76+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(VORBIS_LIBRARY_PATH)
77+
LOCAL_CFLAGS += -DMUSIC_OGG -DOGG_USE_TREMOR -DOGG_HEADER="<ivorbisfile.h>"
78+
LOCAL_STATIC_LIBRARIES += ogg vorbisidec
79+
endif
80+
81+
# This needs to be a shared library to comply with the LGPL license
82+
ifeq ($(SUPPORT_MP3_MPG123),true)
83+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(MPG123_LIBRARY_PATH)
84+
LOCAL_CFLAGS += -DMUSIC_MP3_MPG123
85+
LOCAL_SHARED_LIBRARIES += mpg123
86+
endif
87+
88+
ifeq ($(SUPPORT_MOD_MODPLUG),true)
89+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(MODPLUG_LIBRARY_PATH)/src
90+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(MODPLUG_LIBRARY_PATH)/src/libmodplug
91+
LOCAL_CFLAGS += -DMUSIC_MOD_MODPLUG -DMODPLUG_HEADER="<modplug.h>"
92+
LOCAL_STATIC_LIBRARIES += modplug
93+
endif
94+
95+
ifeq ($(SUPPORT_TIMIDITY),true)
96+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(TIMIDITY_LIBRARY_PATH)
97+
LOCAL_CFLAGS += -DMUSIC_MID_TIMIDITY
98+
LOCAL_STATIC_LIBRARIES += timidity
99+
endif
100+
101+
LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)
102+
103+
include $(BUILD_SHARED_LIBRARY)

SDL2_mixer-2.0.2-wiiu/CHANGES.txt

+180
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
2.0.2:
2+
Sam Lantinga - Fri Oct 20 22:04:50 PDT 2017
3+
* Implemented 24-bit and surround sound support for FLAC audio files
4+
Sam Lantinga - Thu Oct 12 21:32:44 PDT 2017
5+
* Updated external libraries flac-1.3.2, libmodplug-0.8.9.0, libogg-1.3.2 and libvorbis-1.3.5
6+
Ryan Gordon - Thu Oct 12 21:29:59 PDT 2017
7+
* Updated for SDL 2.0.6 and newer
8+
Franc[e]sco - Thu Jul 20 22:03:19 2017 +0200
9+
* Added support for MP3 playback using mpg123
10+
David Ludwig - Sun Apr 10 22:35:38 2016
11+
* Added support for UWP / Windows 10 apps
12+
Juha Kuikka - Fri Jan 29 12:44:01 PST 2016
13+
* Added Mix_OpenAudioDevice() so you can specify the audio device to open
14+
15+
2.0.1:
16+
Sam Lantinga - Tue Jul 7 11:40:33 PDT 2015
17+
* Added support for 'smpl' format loop points in music WAV files
18+
Sam Lantinga - Sat Aug 23 10:57:26 2014
19+
* Fixed floating point exception in Mix_Volume()
20+
David Ludwig - Mon Apr 14 22:15:36 2014
21+
* Added support for building for Windows RT and Windows Phone
22+
Isaac Burns - Sun Sep 15 21:50:27 PDT 2013
23+
* Added support for loading MP3 files as sound chunks
24+
25+
2.0.0:
26+
Sam Lantinga - Sun Jun 9 14:45:30 PDT 2013
27+
* Made libmodplug the default MOD player as it is now in the public domain
28+
Sam Lantinga - Sat Jun 1 19:11:08 PDT 2013
29+
* Updated for SDL 2.0 release
30+
* SDL_LoadMUS_RW() now takes an argument telling whether or not the data source should be freed when done.
31+
32+
1.2.13:
33+
Paul P Komkoff Jr - Sun Jul 22 16:12:28 PDT 2012
34+
* Fixed malloc/free mismatch in the MikMod driver
35+
36+
1.2.12:
37+
Sam Lantinga - Sat Jan 14 22:00:29 2012 -0500
38+
* Fixed seek offset with SMPEG (was relative, should be absolute)
39+
Sam Lantinga - Fri Jan 13 03:04:27 EST 2012
40+
* Fixed memory crash loading Ogg Vorbis files on Windows
41+
Sam Lantinga - Thu Jan 05 22:51:54 2012 -0500
42+
* Added an Xcode project for iOS
43+
Nikos Chantziaras - 2012-01-02 17:37:36 PST
44+
* Added Mix_LoadMUSType_RW() so you can tell SDL_mixer what type the music is
45+
Sam Lantinga - Sun Jan 01 16:45:58 2012 -0500
46+
* Fixed looping native MIDI on Mac OS X and Windows
47+
Sam Lantinga - Sun Jan 01 01:00:51 2012 -0500
48+
* Added /usr/local/share/timidity to the timidity data path
49+
Sam Lantinga - Sat Dec 31 21:26:46 2011 -0500
50+
* Fixed timidity loading of some MIDI files
51+
Sam Lantinga - Sat Dec 31 19:11:59 EST 2011
52+
* Fixed dropping audio in the FLAC audio decoding
53+
Sam Lantinga - Sat Dec 31 18:32:05 EST 2011
54+
* Fixed memory leak in SDL_LoadMUS()
55+
Sam Lantinga - Sat Dec 31 10:22:05 EST 2011
56+
* Removed GPL native MIDI code for new licensing
57+
Sam Lantinga - Sat Dec 31 10:22:05 EST 2011
58+
* SDL_mixer is now under the zlib license
59+
Manuel Montezelo - 2011-12-28 11:42:44 PST
60+
* Fixed drums playing on MIDI channel 16 with timidity
61+
Ryan C. Gordon - Wed Jun 15 03:41:31 2011 -0400
62+
* The music-finished hook can start a track immediately
63+
James Le Cuirot - Mon Mar 21 16:54:11 PDT 2011
64+
* Added support for FluidSynth
65+
Egor Suvorov - Tue Jan 18 11:06:47 PST 2011
66+
* Added support for native MIDI on Haiku
67+
Sam Lantinga - Tue Jan 11 01:29:19 2011 -0800
68+
* Added Android.mk to build on the Android platform
69+
Jon Atkins - Sat Nov 14 13:00:18 PST 2009
70+
* Added support for libmodplug (disabled by default)
71+
72+
1.2.11:
73+
Sam Lantinga - Sat Nov 14 12:38:01 PST 2009
74+
* Fixed initialization error and crashes if MikMod library isn't available
75+
Sam Lantinga - Sat Nov 14 11:22:14 PST 2009
76+
* Fixed bug loading multiple music files
77+
78+
1.2.10:
79+
Sam Lantinga - Sun Nov 8 08:34:48 PST 2009
80+
* Added Mix_Init()/Mix_Quit() to prevent constantly loading and unloading DLLs
81+
Mike Frysinger - 2009-11-05 09:11:43 PST
82+
* Check for fork/vfork on any platform, don't just assume it on UNIX
83+
Jon Atkins - Thu Nov 5 00:02:50 2009 UTC
84+
* Fixed export of Mix_GetNumChunkDecoders() and Mix_GetNumMusicDecoders()
85+
C.W. Betts - 2009-11-02 00:16:21 PST
86+
* Use newer MIDI API on Mac OS X 10.5+
87+
88+
1.2.9:
89+
Ryan Gordon - Sun Oct 18 11:42:31 PDT 2009
90+
* Updated native MIDI support on Mac OS X for 10.6
91+
Ryan Gordon - Sun Oct 11 05:29:55 2009 UTC
92+
* Reset channel volumes after a fade out interrupts a fade in.
93+
Ryan Gordon - Sun Oct 11 02:59:12 2009 UTC
94+
* Fixed crash race condition with position audio functions
95+
Ryan Gordon - Sat Oct 10 17:05:45 2009 UTC
96+
* Fixed stereo panning in 8-bit mode
97+
Sam Lantinga - Sat Oct 10 11:07:15 2009 UTC
98+
* Added /usr/share/timidity to the default timidity.cfg locations
99+
Sam Lantinga - Sat Oct 3 13:33:36 PDT 2009
100+
* MOD support uses libmikmod and is dynamically loaded by default
101+
* A patched version of libmikmod is included in libmikmod-3.1.12.zip
102+
* The libmikmod patches fix security issues CVE-2007-6720 and CVE-2009-0179.
103+
Sam Lantinga - Sat Oct 3 02:49:41 PDT 2009
104+
* Added TIMIDITY_CFG environment variable to fully locate timidity.cfg
105+
Sam Lantinga - Fri Oct 2 07:15:35 PDT 2009
106+
* Implemented seamless looping for music playback
107+
Forrest Voight - 2009-06-13 20:31:38 PDT
108+
* ID3 files are now recognized as MP3 format
109+
Steven Noonan - 2008-05-13 13:31:36 PDT
110+
* Fixed native MIDI crash on 64-bit Windows
111+
Ryan Gordon - Fri Jun 5 16:07:08 2009 UTC
112+
* Added decoder enumeration API:
113+
Mix_GetNumChunkDecoders(), Mix_GetChunkDecoder(),
114+
Mix_GetNumMusicDecoders(), Mix_GetMusicDecoder()
115+
Austen Dicken - Tue Feb 26 23:28:27 PST 2008
116+
* Added support for FLAC audio both as chunks and streaming
117+
Tilman Sauerbeck - Tue Feb 26 03:44:47 PST 2008
118+
* Added support for streaming WAV files with Mix_LoadMUS_RW()
119+
Ryan Gordon - Mon Feb 4 17:10:08 UTC 2008
120+
* Fixed crash caused by not resetting position_channels
121+
122+
1.2.8:
123+
Sam Lantinga - Wed Jul 18 09:45:54 PDT 2007
124+
* Improved detection of Ogg Vorbis and Tremor libraries
125+
Ryan Gordon - Sun Jul 15 12:03:54 EDT 2007
126+
* Fixed memory leaks in Effects API.
127+
David Rose - Sat Jul 14 22:16:09 PDT 2007
128+
* Added support for MP3 playback with libmad (for GPL projects only!)
129+
Sam Lantinga - Sat Jul 14 21:39:30 PDT 2007
130+
* Fixed the final loop of audio samples of a certain size
131+
Sam Lantinga - Sat Jul 14 21:05:09 PDT 2007
132+
* Fixed opening Ogg Vorbis files using different C runtimes on Windows
133+
Philippe Simons - Sat Jul 14 20:33:17 PDT 2007
134+
* Added support for Ogg Vorbis playback with Tremor (an integer decoder)
135+
Sam Lantinga - Sat Jul 14 07:02:09 PDT 2007
136+
* Fixed memory corruption in timidity resampling code
137+
Ryan Gordon - Tue Jul 3 10:44:29 2007 UTC
138+
* Fixed building SDL_mixer with SDL 1.3 pre-release
139+
Ryan Gordon - Tue Feb 13 08:11:54 2007 UTC
140+
* Fixed compiling both timidity and native midi in the same build
141+
Hans de Goede - Sun Aug 20 23:25:46 2006 UTC
142+
* Added volume control to playmus
143+
Jonathan Atkins - Thu Aug 10 15:06:40 2006 UTC
144+
* Fixed linking with system libmikmod
145+
David Ergo - Fri Jun 23 09:07:19 2006 UTC
146+
* Corrected no-op conditions in SetDistance(), SetPanning() and SetPosition()
147+
* Fixed copy/paste errors in channel amplitudes
148+
149+
1.2.7:
150+
Sam Lantinga - Fri May 12 00:04:32 PDT 2006
151+
* Added support for dynamically loading SMPEG library
152+
Sam Lantinga - Thu May 11 22:22:43 PDT 2006
153+
* Added support for dynamically loading Ogg Vorbis library
154+
Sam Lantinga - Sun Apr 30 09:01:44 PDT 2006
155+
* Removed automake dependency, to allow Universal binaries on Mac OS X
156+
* Added gcc-fat.sh for generating Universal binaries on Mac OS X
157+
Sam Lantinga - Sun Apr 30 01:48:40 PDT 2006
158+
* Updated libtool support to version 1.5.22
159+
Patrice Mandin - Sat Jul 16 16:43:24 UTC 2005
160+
* Use SDL_RWops also for native midi mac and win32
161+
Patrice Mandin - Sat Jul 9 14:40:09 UTC 2005
162+
* Use SDL_RWops also for native midi gpl (todo: mac and win32)
163+
Ryan C. Gordon - Sat Jul 9 01:54:03 EDT 2005
164+
* Tweaked Mix_Chunk's definition to make predeclaration easier.
165+
Patrice Mandin - Mon Jul 4 19:45:40 UTC 2005
166+
* Search timidity.cfg also in /etc
167+
* Fix memory leaks in timidity player
168+
* Use also SDL_RWops to read midifiles for timidity
169+
Ryan C. Gordon - Mon Jun 13 18:18:12 EDT 2005
170+
* Patch from Eric Wing to fix native midi compiling on MacOS/x86.
171+
Sam Lantinga - Wed Dec 22 17:14:32 PST 2004
172+
* Disabled support for the system version of libmikmod by default
173+
Sam Lantinga - Tue Dec 21 09:51:29 PST 2004
174+
* Fixed building mikmod support on UNIX
175+
* Always build SDL_RWops music support
176+
* Added SDL_RWops support for reading MP3 files
177+
178+
1.2.6:
179+
Jonathan Atkins - Wed, 15 Sep 2004 23:26:42 -0500
180+
* Added support for using the system version of libmikmod

SDL2_mixer-2.0.2-wiiu/COPYING.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
SDL_mixer: An audio mixer library based on the SDL library
3+
Copyright (C) 1997-2017 Sam Lantinga <[email protected]>
4+
5+
This software is provided 'as-is', without any express or implied
6+
warranty. In no event will the authors be held liable for any damages
7+
arising from the use of this software.
8+
9+
Permission is granted to anyone to use this software for any purpose,
10+
including commercial applications, and to alter it and redistribute it
11+
freely, subject to the following restrictions:
12+
13+
1. The origin of this software must not be misrepresented; you must not
14+
claim that you wrote the original software. If you use this software
15+
in a product, an acknowledgment in the product documentation would be
16+
appreciated but is not required.
17+
2. Altered source versions must be plainly marked as such, and must not be
18+
misrepresented as being the original software.
19+
3. This notice may not be removed or altered from any source distribution.
20+
*/

0 commit comments

Comments
 (0)