Ryan C. Gordon
1617adece2
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.
2006-09-01 17:49:27 +00:00
Ryan C. Gordon
bba6fd286f
int32 support for windib and windx5 audio backends.
2006-09-01 07:50:36 +00:00
Ryan C. Gordon
9abd54345c
QNX6 support for int32/float32 (isn't this just ALSA?!)
2006-09-01 06:55:41 +00:00
Ryan C. Gordon
0d2db03c68
Updated Tru64 audio to support int32.
2006-09-01 06:43:41 +00:00
Ryan C. Gordon
0985060ad0
MiNT audio driver cleanups for clamping types and channels to supported
...
values. int32 support now available in one instance.
2006-09-01 06:32:54 +00:00
Ryan C. Gordon
662041f87d
Mac OS 9 support for int32/float32.
2006-09-01 06:01:03 +00:00
Ryan C. Gordon
9f47260352
Mac OS X audio backend now supports int32/float32.
2006-09-01 05:31:36 +00:00
Ryan C. Gordon
82253ef8b6
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.
2006-09-01 00:04:07 +00:00
Ryan C. Gordon
d317aa1fd9
Actually, my silly logic bug was actually correct. :/
2006-08-31 23:16:48 +00:00
Ryan C. Gordon
b426c969b3
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.
2006-08-31 23:16:23 +00:00
Ryan C. Gordon
28f058713f
Let OS/2 DART backend use SDL converters at a higher level (would fail if
...
DART didn't directly support AudioSpec before).
2006-08-31 22:40:53 +00:00
Ryan C. Gordon
5bee30f9f1
Fixed silly logic thing.
2006-08-31 22:22:34 +00:00
Ryan C. Gordon
1c2b0c9267
Added int32 and float32 support (and some others!) to BeOS audio backend.
...
Untested: No BeOS system here for compiling!
2006-08-31 22:15:07 +00:00
Ryan C. Gordon
685addd7a6
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.
2006-08-31 21:43:25 +00:00
Ryan C. Gordon
a2dfebf9cc
ALSA backend can handle int32 and float32 data directly.
2006-08-31 21:28:21 +00:00
Ryan C. Gordon
2289e7f222
Added int32 adn float32 support to SDL_LoadWAV_RW().
2006-08-31 21:00:10 +00:00
Ryan C. Gordon
a958e7f87d
Reordered the favored audio format list a little.
2006-08-31 20:59:42 +00:00
Sam Lantinga
6bc5ca4908
Take advantage of the existing SDL blitters for normal copy blits.
2006-08-29 08:24:16 +00:00
Sam Lantinga
e16df2dc1f
Clear the second texture stage explicitly
2006-08-28 17:35:15 +00:00
Sam Lantinga
bf0ce2faf3
The dummy renderer can task advantage of the MASK optimization too, though performance probably doesn't matter here...
2006-08-28 17:34:50 +00:00
Sam Lantinga
c4d65a8405
Optimized the copy blitters a little bit
2006-08-28 14:10:46 +00:00
Sam Lantinga
a257277b32
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! :)
2006-08-28 04:39:37 +00:00
Sam Lantinga
82c3752b9e
Implemented color modulation in the D3D renderer.
...
FIXME: Why doesn't alpha modulation appear to work?
2006-08-28 04:03:32 +00:00
Sam Lantinga
f105c474a1
Cleanup for the last checkin
2006-08-28 03:27:59 +00:00
Sam Lantinga
7462d2796b
Added source color and alpha modulation support.
...
Added perl script to generate optimized render copy functions.
2006-08-28 03:17:39 +00:00
Ryan C. Gordon
1ee9fc8f50
Added SDL_SwapFloat* function/macros. Reference Bugzilla #293 .
2006-08-24 12:49:59 +00:00
Ryan C. Gordon
2de95c23ba
Forgot to check in updated SDL_audio.h ...
2006-08-24 12:48:16 +00:00
Ryan C. Gordon
2acb0d9528
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.
2006-08-24 12:10:46 +00:00
Sam Lantinga
dd630ba3e7
The GGI driver hasn't been maintained in 8 years. It's probably safe to remove. :)
2006-08-10 15:15:06 +00:00
Sam Lantinga
06a7b965e7
Missed a Qtopia change.
2006-08-10 14:55:45 +00:00
Sam Lantinga
c106fc0acd
MacOS Classic is no longer supported.
2006-08-10 14:55:00 +00:00
Sam Lantinga
4d17a22012
MacOS Classic is no longer supported.
2006-08-10 14:54:23 +00:00
Sam Lantinga
00de315a97
David Hedbor is no longer maintaining the Qtopia code.
2006-08-10 14:35:42 +00:00
Sam Lantinga
d9d2534a27
Whoops, remove debug code
2006-08-07 05:25:13 +00:00
Sam Lantinga
7b3d5a6de2
Added resize support for GDI and Direct3D renderers
2006-08-07 05:24:13 +00:00
Sam Lantinga
40c9aca9e3
Added paletted OpenGL texture support.
2006-08-06 23:34:59 +00:00
Sam Lantinga
0ca97b7fa7
Fixed fullscreen modes with Cocoa video driver.
2006-08-06 08:55:37 +00:00
Sam Lantinga
fd1c0ee67b
Fixed bug recreating OpenGL textures on window resize
2006-08-06 07:29:38 +00:00
Sam Lantinga
cdcc9f4ee7
Added window resize support for the software renderer
2006-08-06 04:57:28 +00:00
Sam Lantinga
71d3a5c67b
Allow the render context to do necessary work when the video mode changes.
2006-08-06 04:39:13 +00:00
Sam Lantinga
34b09cb9e1
Clarified the difference between render drivers and render contexts
2006-08-06 00:09:04 +00:00
Sam Lantinga
5559b37173
Updated header documentation
2006-08-05 22:41:33 +00:00
Sam Lantinga
b59f1d5aff
In general, fill in pointers to structures, rather than return them.
2006-08-05 22:34:23 +00:00
Sam Lantinga
dac1c877d9
Removed old function
2006-08-05 17:12:22 +00:00
Sam Lantinga
5b0dc2c1d5
SDL constants are all uppercase.
2006-08-05 17:09:42 +00:00
Ryan C. Gordon
13894e5028
1.3 API proposals for audio subsystem. Nothing in here is guaranteed to
...
stay as-is! And none of it is implemented yet!
Use at own risk!
2006-08-03 19:34:05 +00:00
Sam Lantinga
c6ca286be1
Added SDL_GetCurrentVideoDisplay()
2006-08-02 03:20:52 +00:00
Sam Lantinga
d20c00db5b
Hack to stop the beeping
...
Fixed keyboard window focus.
2006-07-30 08:09:20 +00:00
Sam Lantinga
9c2e46d4f2
Removed debug code. :)
2006-07-30 06:11:52 +00:00
Sam Lantinga
6387686fed
Added numlock support
2006-07-30 06:11:24 +00:00