Commit graph

113 commits

Author SHA1 Message Date
Richard Goedeken
5ecbef80a2 update version number to 2.0 2013-07-03 07:05:34 -07:00
Richard Goedeken
d6b9b90507 update text files for upcoming 2.0 release 2013-06-24 22:44:01 -07:00
Sven Eckelmann
cc74b18d91 Initialize audiobuffer before mixing it against our data
SDL doesn't guarantee that the target audio buffer passed in its callback is
initialized to zero (silence). SDL_MixAudio may now try to mix the random data
from the dst buffer and the new data from the src buffer together and creating
distorted sound in this process.

Initializing the destination buffer to zero avoids this problem.
2013-06-11 10:55:08 +02:00
Richard Goedeken
3b07af44a9 tagged v2.0-rc2 2013-06-01 18:00:33 -07:00
richard42
63b56a0d17 Update msvc11 project file to visual studio 2012 (msvc11) 2013-06-01 07:53:09 -07:00
Sven Eckelmann
5ad950ffae Allow to statically set *_(CFLAGS|LIBS) without pkg-config
n.pepinpe requested in #540 to allow overwriting the automatically searched
CFLAGS and LIBS for used libraries. This should allow distributors to set the
build configuration without patching the makefile. This is important for
systems were pkg-config or sdl-config aren't normally used.
2013-05-11 14:59:48 +02:00
Sven Eckelmann
c45e2dcd2f Allow to statically set SDL_(CFLAGS|LIBS) without sdl-config
n.pepinpe requested in #540 to allow overwriting the automatically searched
CFLAGS and LIBS for used libraries. This should allow distributors to set the
build configuration without patching the makefile. This is important for
systems were pkg-config or sdl-config aren't normally used.
2013-05-11 12:25:52 +02:00
Sven Eckelmann
3a8bb412ce Enable Link-time optimization by default
The GCC introduced Link-time optimization in GCC 4.5 (2010-04-14). This should
be long enough available that interested users have upgraded to a compiler
supporting it.

The MSVC project already enabled WholeProgramOptimization since a long time.
Enabling it by default in GCC seems to be equally valid.
2013-05-11 11:25:44 +02:00
Sven Eckelmann
4267ac323b Add CFLAGS to the linker step
The GCC manual states for different parameters that the options for compilation
must also be used when linking. The options for compilation are stored in
CFLAGS and added to LINK.o to fix the behavior.

Option which need this are for example -fPIC/-fPIE or -flto.
2013-05-11 11:04:30 +02:00
Richard Goedeken
03645fba0d add msvc11 project file from mudlord 2013-03-20 22:24:30 -07:00
Sven Eckelmann
750de7c794 Fix typo in Hacktarux's nick 2013-03-14 08:29:02 +01:00
richard42
33235df9d6 merged heads 2013-02-02 22:19:06 -08:00
richard42
5dfde8da4c OSX build fix 2013-02-02 22:18:12 -08:00
Sven Eckelmann
b9dc2d58b4 Introduce WARNFLAGS for default (removable) compiler warning flags 2013-01-02 16:13:44 +01:00
Sven Eckelmann
19e8c67200 Disable OSS under MinGW to prevent build failures during cross compiles 2013-01-01 00:41:38 +01:00
Sven Eckelmann
0f854cd343 Disable PIC on MinGW to reduce warnings 2013-01-01 00:30:33 +01:00
n pepinpe
f336649a26 Fix path to OSX SDK with XCode >=4.3 2012-12-31 10:43:00 +01:00
Richard Goedeken
5796a6ca65 merge heads 2012-12-30 18:47:06 -08:00
Sven Eckelmann
522e27f10c Disabled Audio Mixing with SDL >= 1.3 to avoid distorted audio
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 src/main.c |    5 +++++
 1 file changed, 5 insertions(+)
2012-12-20 16:10:32 +01:00
Sven Eckelmann
4066559a70 Use $(OBJDIR) in clean target instead of hardcoded path 2012-12-13 14:53:04 +01:00
Sven Eckelmann
80c094b421 Allow to add a postfix for each build
The POSTFIX make option is useful for distributions to compile different
versions of the plugin in parallel. The object files will be stored in a
directory with the postfix appended and the linker result will also have this
postfix appended.
2012-12-13 14:47:15 +01:00
Sven Eckelmann
3050189433 Fix order of Makefile targets to print help by default 2012-12-13 14:07:56 +01:00
Sven Eckelmann
be8738e197 Add CROSS_COMPILE make option
The CROSS_COMPILE make option can be used to automatically prepend the prefix
to all build relevant tools to seamlessly allow cross compilation without
setting each tool name separately.

Cross compiling for MinGW32 would can be done using
$ make -C projects/unix/ CROSS_COMPILE=i686-pc-mingw32- HOST_CPU=i686 UNAME=MINGW
2012-12-13 12:25:23 +01:00
Sven Eckelmann
95db8eec0e Allow to change names of *-config tools for cross compiles 2012-12-13 11:33:49 +01:00
Sven Eckelmann
af8974e1ee Synchronize usage of environmental variables for UNAME with HOST_CPU 2012-12-13 10:52:49 +01:00
Sven Eckelmann
79e1e8e7ab Remove duplicated definition of MKDIR and CC for MinGW 2012-12-13 10:45:53 +01:00
veganaize
2c44ba6612 Add support for MingW32 2012-12-04 21:17:52 +01:00
Anthony J. Bentley
f9ad621686 Allow manually disabling OSS.
The previous check is inadequate, because OpenBSD has /dev/mixer but does
not use OSS.
2012-11-14 21:42:12 -07:00
Anthony J. Bentley
d6c1dafc14 Detect OpenBSD PowerPC platforms macppc and socppc. 2012-11-12 18:01:33 -07:00
Sven Eckelmann
7126a3ecf4 Add configuration for semi-supported architecture armel 2012-11-04 01:25:07 +01:00
Sven Eckelmann
9b27463cfa Add support for speexdsp resampler 2012-10-10 07:59:24 +02:00
Sven Eckelmann
95b879dba1 Rename NO_RESAMP compile option to NO_SRC 2012-10-10 07:59:24 +02:00
Sven Eckelmann
31fb39b481 Allow to change resampler quality 2012-10-10 07:59:24 +02:00
casualjames casualjames
135d83c346 From the changelog:
- Bugfix: Don't assume OSS is installed in all linux systems.
 - Bugfix: Some combinations of VolumeSetLevel and VolumeMute caused VolumeGetString to return Mute when not muted
 - Make SDL volume handling the default, since OSS is no longer included in the kernel.
 - Minor refactoring of volume handling code.

Personally, I would drop OSS support altogether, since it's deprecated (and some 'user-friendly' distros don't have it enabled by default, e.g. Ubuntu), and it changes the master volume level and 'remembers' it when muted (what if two programs did this?).
2012-08-27 22:46:18 +02:00
Sven Eckelmann
0976cef7c3 Enable experimental support for link-time optimization 2012-06-09 00:23:55 +02:00
Richard Goedeken
5540679e0a makefile change from Auria: add new linker flag in 32-bit build under OSX 2012-03-11 14:21:07 -07:00
Richard Goedeken
25235d882d Added tag 1.99.5 for changeset e503b9147e59 2012-03-10 10:28:39 -08:00
Richard Goedeken
28b533bf84 updating version and release info for v1.99.5 tag 2012-03-10 09:51:51 -08:00
Richard Goedeken
c02d7102b2 fixed round-off error in config parameter version checking 2012-03-04 15:41:50 -08:00
Richard Goedeken
f571c86ee6 bugfix: left out these declarations 2012-02-24 20:53:58 -08:00
Richard Goedeken
a441d503c1 bug fixes to config version handling 2012-02-23 20:17:51 -08:00
Richard Goedeken
b9c16f8c51 added basic code for updating param version number. 2012-02-22 21:39:58 -08:00
Richard Goedeken
3e8cb1e3f1 added version number to SDL-audio plugin config parameters, to support future changes 2012-02-21 22:09:26 -08:00
Sven Eckelmann
0f811f5f6c Remove additional -O3 on MacOSX 2011-10-14 19:58:41 +02:00
Sven Eckelmann
519a72b8b4 Explicitly disable PIC in case of PIC=0 2011-10-13 00:01:01 +02:00
Sven Eckelmann
f466b4ca39 Add help text about NO_RESAMP 2011-10-09 13:57:53 +02:00
Sven Eckelmann
0f23aa19d0 Ignore generated files in hg-status 2011-08-29 14:30:45 +02:00
Sven Eckelmann
ca4091ff91 Enable ppc(64) as experimental target
nogagplz tested mupen64plus on 32-bit ppc and didn't detect any big show
stoppers with interpreter cores and the mupen64plus example rom. This makes the
PowerPC an interesting target for further tests and may reveal other endianness
problems.
2011-08-05 10:46:14 +02:00
Sven Eckelmann
3f5f0701ab Enable PIC depending on architecture instead of bits only
nogagplz noticed on ppc32 that PIC is necessary to compile everything as shared
object. Therefore, it seems to be a better idea to have architecture specific
PIC default settings instead of checking only whether it is a 32 or 64 bit
architecture.
2011-08-05 10:32:06 +02:00
Sven Eckelmann
8fb2f67d95 Enable big endian mode on ppc and ppc64 2011-08-05 10:19:20 +02:00