SDL/src/audio
Sam Lantinga 2018ef5731 Date: Mon, 11 Oct 2004 15:17:27 +0300 (EEST)
From: Hannu Savolainen
Subject: Re: SDL uses obsolete OSS features

I did some work on getting OSS to work better with SDL. There have been
some problems with select which should be fixed now.

I'm having some problems in understanding what is the purpose of the
DSP_WaitAudio() routine. I added a return to the very beginning of this
routine and commendted out the define for USE_BLOCKING_WRITES. At least
lbreakout2 seems to work as well as earlier. The latencies are the same.

An ordinary blocking write does exactly the same thing than DSP_WaitAudio
does. So I would recommend using the USE_BLOCKING_WRITES approach and
removing everything from the DSP_WaitAudio routine. Also enabling
USE_BLOCKING_WRITES makes it possible to simplify DSP_PlayAudio() because
you don't need to handle the partial writes (the do-while loop).

Attached is a patch against SDL-1.2.7. After these changes SDL will use
OSS as it's designed to be used (make it as simple as possible). This code
should work with all OSS implementations because it uses only the very
fundamental features that have been there since the jurassic times.
2004-11-12 21:39:04 +00:00
..
alsa Here are patches for SDL12 and SDL_mixer for 4 or 6 channel 2004-08-21 12:27:02 +00:00
amigaos Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
arts Date: Mon, 30 Aug 2004 18:20:25 +0200 2004-09-17 13:25:06 +00:00
baudio Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
dc Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
disk Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
dma Date: Sat, 9 Oct 2004 02:46:18 +0300 (EEST) 2004-10-09 22:11:45 +00:00
dmedia Date: Sun, 18 Jul 2004 16:46:44 +0200 2004-07-18 18:33:28 +00:00
dsp Date: Mon, 11 Oct 2004 15:17:27 +0300 (EEST) 2004-11-12 21:39:04 +00:00
esd Date: Sun, 29 Feb 2004 20:28:27 +0200 2004-03-02 12:45:22 +00:00
macosx CoreAudio driver works on Mac OSX 10.1 2004-08-21 03:21:44 +00:00
macrom Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
mint Forgot to disable debug messages 2004-10-29 11:19:03 +00:00
mme Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
nas Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
nto Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
openbsd Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
paudio Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
riscos Date: Fri, 25 Jun 2004 13:29:15 +0100 2004-09-17 13:20:10 +00:00
sun Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
ums Initial revision 2001-04-26 16:45:43 +00:00
windib Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
windx5 Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
.cvsignore Initial revision 2001-04-26 16:45:43 +00:00
Makefile.am Audio improvements from Max Horn, including a new CoreAudio driver for MacOSX 2004-08-21 02:06:30 +00:00
SDL_audio_c.h Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_audio.c Date: Fri, 25 Jun 2004 13:29:15 +0100 2004-09-17 13:20:10 +00:00
SDL_audiocvt.c Here are patches for SDL12 and SDL_mixer for 4 or 6 channel 2004-08-21 12:27:02 +00:00
SDL_audiodev_c.h Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_audiodev.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_audiomem.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_audiomem.h Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_mixer_m68k.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_mixer_m68k.h Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_mixer_MMX_VC.c Greatly simplified the SDL CPU info code 2003-11-24 09:22:12 +00:00
SDL_mixer_MMX_VC.h Greatly simplified the SDL CPU info code 2003-11-24 09:22:12 +00:00
SDL_mixer_MMX.c Date: Mon, 10 May 2004 10:17:46 -0400 2004-05-16 17:19:48 +00:00
SDL_mixer_MMX.h Added MMX audio mixing code for gcc (thanks Stephane!) 2002-11-09 06:13:28 +00:00
SDL_mixer.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_sysaudio.h CoreAudio driver works on Mac OSX 10.1 2004-08-21 03:21:44 +00:00
SDL_wave.c Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
SDL_wave.h Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00