Sam Lantinga
d2c2ac4b80
Fixed bug #292
...
I might be on crack here.
It looks like SDL_ConvertMono() in src/audio/SDL_audiocvt.c adds the left and
right channels of a stereo stream together, and clamps the new mono channel if
it would overflow.
Shouldn't it be dividing by 2 to average the two sample points instead of
clamping? Otherwise the mono sample point's volume doubles in the conversion.
This would also make the conversion faster, as it replaces two branches per
sample frame with a bitwise shift.
--ryan.
2006-09-24 15:56:36 +00:00
Sam Lantinga
ce919aafbe
Fixed bug #316
...
Looks like this is a long standing typo... is this code even used anymore?
2006-09-24 00:55:19 +00:00
Sam Lantinga
e9e009b4d5
2006-09-23 23:15:56 +00:00
Sam Lantinga
b21b05ee5d
Fixed bug #329
...
On tracing it turns out to fail from SDL_WM_SetCaption()
On going through the function it looks like the SDL_free() function is called
every alternate time with an invalid pointer that has already been freed.
2006-09-23 22:51:37 +00:00
Patrice Mandin
46772adc90
Pfiou, all of it to update, faster to rewrite from scratch?
2006-09-22 21:52:20 +00:00
Patrice Mandin
01ca61374e
Started update for 1.3
2006-09-20 22:09:19 +00:00
Patrice Mandin
68376c99d8
Oops, don't need to check that
2006-09-20 21:38:06 +00:00
Patrice Mandin
ee994e5210
More work for 1.3
2006-09-20 21:29:44 +00:00
Patrice Mandin
006f974cd8
Started work to update for 1.3 api
2006-09-20 21:22:08 +00:00
Patrice Mandin
140c4d647e
Reenable mouse usage using xbios vectors under MiNT
2006-09-20 19:49:23 +00:00
Patrice Mandin
8baf7d2061
Forward keyboard reworking from 1.2
2006-09-20 19:47:09 +00:00
Patrice Mandin
60767d528e
Add teamtap support
2006-09-16 17:13:41 +00:00
Patrice Mandin
82197c117d
Save/restore FPU registers in interrupt
2006-09-16 16:59:46 +00:00
Ryan C. Gordon
bbc79776fa
Fixed typo in windib audio.
2006-09-13 04:47:46 +00:00
Patrice Mandin
23e671c360
Allow grabing mouse by locking its position
2006-09-12 19:47:40 +00:00
Patrice Mandin
2e5b4c3c55
Reenable xbios usage to get relative mouse motion
2006-09-12 19:44:51 +00:00
Patrice Mandin
2f85f1a110
Allow mouse to be locked when grabbed with GEM driver
2006-09-12 19:43:29 +00:00
Patrice Mandin
d8503c64fd
Disable MiNT thread usage and use hw access for updating DMA audio pointers
2006-09-12 19:23:51 +00:00
Patrice Mandin
e638e384a8
Forgot to reshow mouse cursor when exiting grab/hide mode
2006-09-08 19:18:02 +00:00
Patrice Mandin
dd714797b0
/me dumb, sizeof(keymap != number of elements
2006-09-07 20:50:13 +00:00
Patrice Mandin
7ae5ef388e
Use correct function to free allocated mem
2006-09-05 19:32:35 +00:00
Ryan C. Gordon
3b81091997
Fixed macosx audio initialization (passed wrong struct to CoreAudio).
2006-09-02 21:50:04 +00:00
Ryan C. Gordon
707c0bce2c
Compile fixes.
2006-09-02 21:19:00 +00:00
Ryan C. Gordon
e59b61adb2
Added a FIXME and macro to sun audio.
2006-09-01 22:48:43 +00:00
Ryan C. Gordon
7fc94eaa17
Replaced unions with calls to SDL_SwapFloat...
2006-09-01 19:29:49 +00:00
Ryan C. Gordon
ef2ead7999
Fixed S32 audio mixing, but I'm a bit nervous about the use of 64-bit
...
datatypes here...
2006-09-01 19:17:05 +00:00
Ryan C. Gordon
d5d4183571
Continuing my quest to replace all the bitwise operations on SDL_AudioFormats
...
with the new 1.3 macros...
2006-09-01 19:16:26 +00:00
Ryan C. Gordon
0db5f57372
Fixed broken audio conversions between float and unsigned datatypes.
2006-09-01 18:07:41 +00:00
Ryan C. Gordon
2352dae576
Whoops, wrong tokens for int32 support in ALSA driver (specified unsigned
...
where it should be signed!).
2006-09-01 18:04:01 +00:00
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