Commit graph

2041 commits

Author SHA1 Message Date
Patrice Mandin
41b2bb8004 Allow mouse to be locked when grabbed with GEM driver
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402079
2006-09-12 19:43:29 +00:00
Patrice Mandin
d32e462e3f Disable MiNT thread usage and use hw access for updating DMA audio pointers
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402075
2006-09-12 19:23:51 +00:00
Sam Lantinga
ac911fde85 Temporarily disabled framebuffer console support for SDL 1.3
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402073
2006-09-12 08:45:48 +00:00
Patrice Mandin
b2dfe29ef6 Forgot to reshow mouse cursor when exiting grab/hide mode
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402072
2006-09-08 19:18:02 +00:00
Patrice Mandin
672a050e8c /me dumb, sizeof(keymap != number of elements
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402069
2006-09-07 20:50:13 +00:00
Patrice Mandin
477dde8ea7 Use correct function to free allocated mem
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402068
2006-09-05 19:32:35 +00:00
Ryan C. Gordon
bf2a2d714d Fixed macosx audio initialization (passed wrong struct to CoreAudio).
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402065
2006-09-02 21:50:04 +00:00
Ryan C. Gordon
0d6e6d5c9c Compile fixes.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402064
2006-09-02 21:19:00 +00:00
Ryan C. Gordon
2f00844dab Added a FIXME and macro to sun audio.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402062
2006-09-01 22:48:43 +00:00
Ryan C. Gordon
4ada9445af Replaced unions with calls to SDL_SwapFloat...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402061
2006-09-01 19:29:49 +00:00
Ryan C. Gordon
b046008cbd Fixed S32 audio mixing, but I'm a bit nervous about the use of 64-bit
datatypes here...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402060
2006-09-01 19:17:05 +00:00
Ryan C. Gordon
648d2a839d Continuing my quest to replace all the bitwise operations on SDL_AudioFormats
with the new 1.3 macros...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402059
2006-09-01 19:16:26 +00:00
Ryan C. Gordon
f3acf2d311 Fixed broken audio conversions between float and unsigned datatypes.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402058
2006-09-01 18:07:41 +00:00
Ryan C. Gordon
4a039aaede Whoops, wrong tokens for int32 support in ALSA driver (specified unsigned
where it should be signed!).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402057
2006-09-01 18:04:01 +00:00
Ryan C. Gordon
59f531f6dd ALSA was testing if (format) was set to zero as an error condition, but
SND_PCM_FORMAT_S8 is zero, so you could never open ALSA for AUDIO_S8 data
 before.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402056
2006-09-01 17:49:27 +00:00
Ryan C. Gordon
176414e7a2 int32 support for windib and windx5 audio backends.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402055
2006-09-01 07:50:36 +00:00
Ryan C. Gordon
aeb5fc04c0 QNX6 support for int32/float32 (isn't this just ALSA?!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402054
2006-09-01 06:55:41 +00:00
Ryan C. Gordon
8a3081f3f3 Updated Tru64 audio to support int32.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402053
2006-09-01 06:43:41 +00:00
Ryan C. Gordon
f7b2a985cc MiNT audio driver cleanups for clamping types and channels to supported
values. int32 support now available in one instance.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402052
2006-09-01 06:32:54 +00:00
Ryan C. Gordon
43bec8da2b Mac OS 9 support for int32/float32.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402051
2006-09-01 06:01:03 +00:00
Ryan C. Gordon
28f57c5b3a Mac OS X audio backend now supports int32/float32.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402050
2006-09-01 05:31:36 +00:00
Ryan C. Gordon
3e4e137122 Cleaned up IRIX audio driver, added float32 support and fallbacks when
a specific audiospec isn't supported or the hardware fails.

Usual disclaimer: No IRIX box, so this may not even compile.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402049
2006-09-01 00:04:07 +00:00
Ryan C. Gordon
bb7ad968f9 Actually, my silly logic bug was actually correct. :/
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402048
2006-08-31 23:16:48 +00:00
Ryan C. Gordon
3a09848855 Let SDL convert to valid Dreamcast audio formats instead of failing if the
hardware can't be opened in a specific format. Not that you'd want to swallow
 the overhead on a Dreamcast, but hey, it's the SDL way.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402047
2006-08-31 23:16:23 +00:00
Ryan C. Gordon
1f63d96bcd Let OS/2 DART backend use SDL converters at a higher level (would fail if
DART didn't directly support AudioSpec before).

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402046
2006-08-31 22:40:53 +00:00
Ryan C. Gordon
2bd800db0e Fixed silly logic thing.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402045
2006-08-31 22:22:34 +00:00
Ryan C. Gordon
558a5b6909 Added int32 and float32 support (and some others!) to BeOS audio backend.
Untested: No BeOS system here for compiling!

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402044
2006-08-31 22:15:07 +00:00
Ryan C. Gordon
5324cc6d9c Added int32 support to Amiga audio driver and cleaned up some other details
in driver initialization. May need tweaking: I can't compile the amiga driver
 here.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402043
2006-08-31 21:43:25 +00:00
Ryan C. Gordon
da3564dedd ALSA backend can handle int32 and float32 data directly.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402042
2006-08-31 21:28:21 +00:00
Ryan C. Gordon
fd613a1f43 Added int32 adn float32 support to SDL_LoadWAV_RW().
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402041
2006-08-31 21:00:10 +00:00
Ryan C. Gordon
bead079669 Reordered the favored audio format list a little.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402040
2006-08-31 20:59:42 +00:00
Sam Lantinga
a1c6ec6c23 Take advantage of the existing SDL blitters for normal copy blits.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402039
2006-08-29 08:24:16 +00:00
Sam Lantinga
2bd62ed521 Clear the second texture stage explicitly
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402038
2006-08-28 17:35:15 +00:00
Sam Lantinga
1b733db29c The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402037
2006-08-28 17:34:50 +00:00
Sam Lantinga
04b633b920 Optimized the copy blitters a little bit
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402036
2006-08-28 14:10:46 +00:00
Sam Lantinga
d11e6208f1 Figured out how texture stages work, thanks to this:
http://www.toymaker.info/Games/html/texture_states.html
Both color and alpha source modulation work now! :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402035
2006-08-28 04:39:37 +00:00
Sam Lantinga
357dc8de4a Implemented color modulation in the D3D renderer.
FIXME: Why doesn't alpha modulation appear to work?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402034
2006-08-28 04:03:32 +00:00
Sam Lantinga
2dc5a97f17 Cleanup for the last checkin
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402033
2006-08-28 03:27:59 +00:00
Sam Lantinga
fdafca64b3 Added source color and alpha modulation support.
Added perl script to generate optimized render copy functions.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402032
2006-08-28 03:17:39 +00:00
Ryan C. Gordon
aebbf8cb6e Added SDL_SwapFloat* function/macros. Reference Bugzilla #293.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402031
2006-08-24 12:49:59 +00:00
Ryan C. Gordon
3c0e34ea51 Forgot to check in updated SDL_audio.h ...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402030
2006-08-24 12:48:16 +00:00
Ryan C. Gordon
c500e6c0b4 First shot at new audio data types (int32 and float32).
Notable changes:
 - Converters between types are autogenerated. Instead of making multiple
   passes over the data with seperate filters for endianess, size, signedness,
   etc, converting between data types is always one specialized filter. This
   simplifies SDL_BuildAudioCVT(), which otherwise had a million edge cases
   with the new types, and makes the actually conversions more CPU cache
   friendly. Left a stub for adding specific optimized versions of these
   routines (SSE/MMX/Altivec, assembler, etc)
 - Autogenerated converters are built by SDL/src/audio/sdlgenaudiocvt.pl. This
   does not need to be run unless tweaking the code, and thus doesn't need
   integration into the build system.
 - Went through all the drivers and tried to weed out all the "Uint16"
   references that are better specified with the new SDL_AudioFormat typedef.
 - Cleaned out a bunch of hardcoded bitwise magic numbers and replaced them
   with new SDL_AUDIO_* macros.
 - Added initial float32 and int32 support code. Theoretically, existing
   drivers will push these through converters to get the data they want to
   feed to the hardware.

Still TODO:
 - Optimize and debug new converters.
 - Update the CoreAudio backend to accept float32 data directly.
 - Other backends, too?
 - SDL_LoadWAV() needs to be updated to support int32 and float32 .wav files
   (both of which exist and can be generated by 'sox' for testing purposes).
 - Update the mixer to handle new datatypes.
 - Optionally update SDL_sound and SDL_mixer, etc.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402029
2006-08-24 12:10:46 +00:00
Sam Lantinga
03794d9be1 The GGI driver hasn't been maintained in 8 years. It's probably safe to remove. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402028
2006-08-10 15:15:06 +00:00
Sam Lantinga
d5f1b58e5d Missed a Qtopia change.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402027
2006-08-10 14:55:45 +00:00
Sam Lantinga
dbc4d303a8 MacOS Classic is no longer supported.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402026
2006-08-10 14:55:00 +00:00
Sam Lantinga
d942ec3207 MacOS Classic is no longer supported.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402025
2006-08-10 14:54:23 +00:00
Sam Lantinga
f63cb9f282 David Hedbor is no longer maintaining the Qtopia code.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402024
2006-08-10 14:35:42 +00:00
Sam Lantinga
3972b7795d Whoops, remove debug code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402023
2006-08-07 05:25:13 +00:00
Sam Lantinga
3e23ac57e2 Added resize support for GDI and Direct3D renderers
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402022
2006-08-07 05:24:13 +00:00
Sam Lantinga
e16c932a5c Added paletted OpenGL texture support.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402021
2006-08-06 23:34:59 +00:00