Commit Graph

171 Commits

Author SHA1 Message Date
Ryan C. Gordon
dc1d31ffc9 Swizzle ALSA channels for 5.1 output to match DirectSound and CoreAudio.
Untested, but potentially fixes Bugzilla #110.
2006-06-23 08:35:48 +00:00
Sam Lantinga
1f2b2f370c Fixed bug #69
Hopefully this takes care of most of the audio dropouts in Windows
2006-06-23 08:15:47 +00:00
Patrice Mandin
9e20b86d93 Forgot to declare volatile stuff also in c file 2006-05-11 21:14:05 +00:00
Sam Lantinga
5400b91864 Fixed some bugs in string handling
Cleaned up error message code, UTF-8 is used instead of UCS2
Added detection for MPEG Layer 3 audio for more informative errors.
2006-05-11 21:03:23 +00:00
Sam Lantinga
9ef89950da Fixed bug #137
If SDL_OpenAudio() is passed zero for the desired format
fields, the following environment variables will be used
to fill them in:
	SDL_AUDIO_FREQUENCY
	SDL_AUDIO_FORMAT
	SDL_AUDIO_CHANNELS
	SDL_AUDIO_SAMPLES
If an environment variable is not specified, it will be set
to a reasonable default value.
2006-05-09 08:52:54 +00:00
Sam Lantinga
1195dd8133 Fixed bug #215
The current SVN trunk is missing the SDLCALL specifier at numerous locations.

It has to be added for all (possibly user provided) callbacks.

I stumbled over this while creating a makefile for the OpenWatcom compiler for
Win32.
2006-05-07 03:40:06 +00:00
Patrice Mandin
7aa243af00 Declare volatile variables modified by interrupt routines 2006-04-30 21:01:25 +00:00
Sam Lantinga
b0519469db Fixes bug #195:
The proper name of Apple's operating system is "Mac OS X" not "MacOS X", as can
bee seen in many places, for example http://www.apple.com/macosx/). This
contrasts the naming of the old operating system, which was called "MacOS" and
today is often refered to as "MacOS Classic".

The attached patches fixes the misuse of the name "MacOS X" in both the SDL12
and sdlweb CVS modules.
2006-04-13 13:08:26 +00:00
Sam Lantinga
62630e91cd *** empty log message *** 2006-03-31 06:30:16 +00:00
Sam Lantinga
63695e2f76 Fixed some ultra-pedantic gcc warnings 2006-03-24 06:10:24 +00:00
Sam Lantinga
e1ae9a0b81 Fixed bug #175
Removed obsolete .cvsignore files... whee!
2006-03-23 21:39:58 +00:00
Ryan C. Gordon
ebfefa19a9 Updated my email address. 2006-03-23 06:48:12 +00:00
Sam Lantinga
aecc79b780 *** empty log message *** 2006-03-22 07:10:38 +00:00
Sam Lantinga
2c5f72ddbf Good idea, renaming OpenBSD audio to BSD audio. 2006-03-21 09:33:54 +00:00
Sam Lantinga
7978390e19 Fixed bug #52
Integrated most of the NetBSD and DragonFly patches at:
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/SDL/patches/

Thanks to Thomas Klausner for defailed information on the patches
2006-03-21 08:54:50 +00:00
Sam Lantinga
56345b8c5d Fixed bug #18
Reordered the audio thread loop so there's no initial wait.
2006-03-21 06:45:47 +00:00
Ryan C. Gordon
66c1ba436e Try to fill the hardware audio buffer immediately.
Fixes Bugzilla #18.
2006-03-21 00:56:10 +00:00
Sam Lantinga
edf78177b4 Left the debug code more explicit 2006-03-19 10:48:48 +00:00
Sam Lantinga
c38db8be5b Fixed bug #79
Implemented snd_pcm_sw_params_set_start_threshold() and snd_pcm_sw_params_set_avail_min() in the ALSA 0.9 driver.
This doesn't actually change any latency for me, but it's the right thing to do...
2006-03-19 10:41:49 +00:00
Sam Lantinga
03a8f8b159 *** empty log message *** 2006-03-15 04:29:35 +00:00
Sam Lantinga
4343a58138 *** empty log message *** 2006-03-15 03:50:34 +00:00
Ryan C. Gordon
52e237c438 Corrected dummy audio callback firing to be realistic, cleaned up tabs. 2006-03-14 19:12:49 +00:00
Sam Lantinga
9491ae58df By default all the real targets have dummy audio/video and disk audio. 2006-03-14 16:19:32 +00:00
Ryan C. Gordon
58b18d03af Implemented dummy audio driver.
Fixes Bugzilla #161.
2006-03-14 08:53:33 +00:00
Ryan C. Gordon
1d1702a6bd Fixed cut-and-paste error in DC audio target. 2006-03-14 08:35:39 +00:00
Sam Lantinga
887d7dce86 Cleaning up warnings on MacOS X 2006-03-09 06:33:21 +00:00
Sam Lantinga
223544e90d Updated WinCE support by Dmitry (with some tweaks)
Converted the disk audio driver to SDL_RWops for portability
2006-03-04 08:24:35 +00:00
Sam Lantinga
3a2b77fa89 *** empty log message *** 2006-03-04 05:13:03 +00:00
Sam Lantinga
f496c3b272 Updated for Dreamcast KOS June 2005 snapshot:
http://cadcdev.sourceforge.net/svn/snapshots/
http://gamedev.allusion.net/softprj/kos/dcsetup.php
2006-03-02 13:16:02 +00:00
Sam Lantinga
62c5e3a5d5 Fixed a bunch of 64-bit compatibility problems 2006-03-01 09:43:47 +00:00
Sam Lantinga
d18315441e Oops, missed the header 2006-02-26 19:46:17 +00:00
Sam Lantinga
aaf71291d0 Updated OS/2 build, yay! 2006-02-26 19:30:21 +00:00
Sam Lantinga
2861771aa5 SDL_windows.h is no longer necessary 2006-02-25 22:18:25 +00:00
Sam Lantinga
5146610dc6 Update for Visual C++ 6.0 2006-02-24 18:24:57 +00:00
Patrice Mandin
666b56a4d3 Fixed include files 2006-02-21 21:45:31 +00:00
Sam Lantinga
28b54b4823 Fixed assembly alignment error on Intel Macs.
Do we really need 16-bit alignment here?
2006-02-21 19:28:45 +00:00
Sam Lantinga
538f9ed207 Fixed some preprocessor mangling 2006-02-21 18:29:39 +00:00
Sam Lantinga
0230236dd4 *** empty log message *** 2006-02-21 09:14:58 +00:00
Sam Lantinga
61ae237dcb Catch the C++ and Objective C sources too... 2006-02-21 08:47:46 +00:00
Sam Lantinga
190b425364 Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
2006-02-21 08:46:50 +00:00
Patrice Mandin
83912dacef Hum badly edited source 2006-02-20 20:53:01 +00:00
Sam Lantinga
0ef73d9eae Use only safe string functions 2006-02-19 23:46:34 +00:00
Sam Lantinga
49255e3fa6 Fixes for BeOS and Solaris builds 2006-02-17 08:43:23 +00:00
Sam Lantinga
f05187e232 New configure-based build system. Still work in progress, but much improved 2006-02-16 10:11:48 +00:00
Sam Lantinga
769424426d More header massaging... works great on Windows. ;-) 2006-02-10 06:48:43 +00:00
Patrice Mandin
c309a78b29 Fixes for new SDL embedded libc stuff 2006-02-08 18:59:49 +00:00
Sam Lantinga
835cdcb355 Fixed it Hayashi Naoyuki's way. :) 2006-02-07 12:15:46 +00:00
Sam Lantinga
d72a9898ed Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
2006-02-07 12:11:33 +00:00
Sam Lantinga
1e037cc218 Removed uses of stdlib.h and string.h 2006-02-07 09:29:18 +00:00
Sam Lantinga
02cc6c0f11 Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
2006-02-07 06:59:48 +00:00