Sam Lantinga
a3e06251f2
Merged changeset 3463 from SDL 1.2, fixed compile error with Intel compiler.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402653
2007-12-28 18:08:43 +00:00
Sam Lantinga
fa9233eaca
indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402638
2007-09-10 12:11:40 +00:00
Ryan C. Gordon
8e5b2416a4
Minor PulseAudio fixes: corrected OpenDevice return code, human-readable
...
error messages if connction to daemon fails.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402634
2007-08-20 02:08:37 +00:00
Ryan C. Gordon
c09d2e0f0d
Ported PulseAudio target from 1.2 to 1.3 interfaces, and added it to the trunk.
...
Fixes Bugzilla #439 .
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402633
2007-08-20 01:02:37 +00:00
Sam Lantinga
8acf15bdaa
Date: Fri, 17 Aug 2007 01:12:31 +0200
...
From: Couriersud
Subject: fix for audio dsp exit crash / various dfb issues
The current code will crash on exiting an application. The attached diff
fixes the issue.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402620
2007-08-17 02:54:12 +00:00
Patrice Mandin
5eb122882e
Rename LockAudio,UnlockAudio to LockDevice,UnlockDevice. Also some small fixes
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402518
2007-07-13 23:58:22 +00:00
Patrice Mandin
d53ee909be
Missing include file
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402514
2007-07-13 22:51:42 +00:00
Ryan C. Gordon
1d89fd5fc7
Merged r3165:3166 from branches/SDL-1.2: gcc -Wall fix in arts audio target.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402437
2007-07-08 01:37:48 +00:00
Sam Lantinga
1be5906ea3
Removed campatibility behavior for 1.3
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402417
2007-07-05 04:34:48 +00:00
Ryan C. Gordon
409c8b5862
Merged r3138:3139 from branches/SDL-1.2: Don't init audio callback buffer.
...
(This already had a concession for devices opened via the 1.2 entry points,
I've changed it to respect the environment variable and do it for all devices
now.)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402412
2007-07-05 02:30:10 +00:00
Sam Lantinga
957d8bf377
stupid indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402404
2007-07-03 09:55:29 +00:00
Sam Lantinga
ed60e3a7d4
Fixes for compiling with Visual C++ 8.0 Express Edition
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402369
2007-06-19 05:53:56 +00:00
Ryan C. Gordon
d097a3fa1b
Reworked r3067:3068 from branches/SDL-1.2: arts unavailable hardware bug fix.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402347
2007-06-14 14:22:54 +00:00
Sam Lantinga
19f18657f6
Fixed build issues on Mac OS X
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402322
2007-05-31 14:46:01 +00:00
Ryan C. Gordon
c34806796a
Apparently it's possible that MSVC will want to call a built-in function to
...
bitshift an Sint64, but it can't find this function since we don't use the
C runtime on Windows.
Division doesn't have this problem, though. Strange.
Thanks, Suzuki Masahiro.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402242
2006-11-29 10:38:07 +00:00
Ryan C. Gordon
7f36032f22
Use SDL_strcmp(), not strcmp().
...
Thanks, Suzuki Masahiro.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402239
2006-11-29 10:26:32 +00:00
Ryan C. Gordon
a39f5c21f2
Merged r2906:2907 from 1.2 branch to trunk: power of two channels in dsp backend.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402230
2006-11-13 00:38:13 +00:00
Ryan C. Gordon
2a14d5cdca
Fixed building of Windows waveout audio.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402228
2006-11-11 06:48:57 +00:00
Sam Lantinga
146180e7f7
@#$% indent
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402218
2006-10-29 15:00:54 +00:00
Sam Lantinga
a5dc4b0ce9
--HG--
...
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402217
2006-10-29 14:47:20 +00:00
Sam Lantinga
05a29201de
indent is evil
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402208
2006-10-28 16:48:03 +00:00
Ryan C. Gordon
da664292cc
Oh for crying out loud...
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402205
2006-10-28 07:49:19 +00:00
Ryan C. Gordon
4e1aba0a8b
Whoops, wrong variable name.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402204
2006-10-28 07:45:33 +00:00
Ryan C. Gordon
eebc7e6c2a
Fix potential memory leaks if CoreAudio initialization fails.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402203
2006-10-28 07:44:38 +00:00
Ryan C. Gordon
5927dc70b0
Patched to compile.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402202
2006-10-28 07:39:35 +00:00
Ryan C. Gordon
3c592629bd
1.3 branch version of revision 2878.
...
Fixes Bugzilla #298 .
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402201
2006-10-27 20:19:48 +00:00
Ryan C. Gordon
0c642e7e31
Whoops, need a pointer to an LPDIRECTSOUNDBUFFER and not the
...
LPDIRECTSOUNDBUFFER itself.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402197
2006-10-20 00:15:18 +00:00
Ryan C. Gordon
95b6efb631
Patched to compile again (thanks, Rasmus!).
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402196
2006-10-18 10:49:23 +00:00
Ryan C. Gordon
0089ba6cbe
Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402195
2006-10-17 09:15:21 +00:00
Ryan C. Gordon
f9b43fac01
Replaced strncmp for SDL_AUDIODRIVER test with strcasecmp.
...
Fixes Bugzilla #334 .
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402122
2006-10-01 02:06:37 +00:00
Ryan C. Gordon
75efbfe5d7
Minor cleanup in the mint driver that was sitting on my laptop (sorry!).
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402121
2006-10-01 01:12:08 +00:00
Sam Lantinga
4ecb44b166
Formatting update
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402120
2006-09-24 15:56:55 +00:00
Sam Lantinga
d0a80f6b53
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.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402119
2006-09-24 15:56:36 +00:00
Sam Lantinga
a42c7f1452
Fixed bug #316
...
Looks like this is a long standing typo... is this code even used anymore?
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402114
2006-09-24 00:55:19 +00:00
Patrice Mandin
0fee077381
Save/restore FPU registers in interrupt
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402091
2006-09-16 16:59:46 +00:00
Ryan C. Gordon
5baf894ec9
Fixed typo in windib audio.
...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402082
2006-09-13 04:47:46 +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
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