SDL-mirror/src/audio
Sam Lantinga 7ad9d80037 Editors Note: The original patch was modified to use SDL_Delay() instead of
nanosleep because nanosleep may not be portable to all systems
              using SDL with the ALSA backend.  This may be a moot point with
              the switch to blocking writes anyway...

Date: Sat, 27 Dec 2003 21:47:36 +0100
From: Michel Daenzer
To: Debian Bug Tracking System
Subject: [SDL] Bug#225252: [PATCH] ALSA fixes

Package: libsdl1.2debian-all
Version: 1.2.6-2
Severity: normal
Tags: patch

For SDL 1.2.6, the ALSA backend was changed to call snd_pcm_open() with
SND_PCM_NONBLOCK. That's a good idea per se, however, it causes high CPU
usage, interrupted sound and stuttering in some games here. Taking a nanosleep
whenever snd_pcm_writei() returns -EAGAIN fixes this, but I think it's more
efficient to use blocking mode for the actual sound playback. Feedback from the
SDL and ALSA lists appreciated.

The patch also fixes the default ALSA device to be used.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40766
2004-01-04 15:40:50 +00:00
..
alsa Editors Note: The original patch was modified to use SDL_Delay() instead of 2004-01-04 15:40:50 +00:00
amigaos *** empty log message *** 2003-10-06 09:03:02 +00:00
arts Doh! Patch by Joel Ray Holveck 2002-08-28 23:25:09 +00:00
baudio Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
dc Added initial support for Dreamcast (thanks HERO!) 2002-10-05 16:50:56 +00:00
disk Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
dma Updated ALSA audio support for ALSA 0.9 2002-04-15 07:38:54 +00:00
dmedia IRIX patches from Andrea Suatoni 2003-03-06 06:12:41 +00:00
dsp Updated ALSA audio support for ALSA 0.9 2002-04-15 07:38:54 +00:00
esd Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
macrom Re-added MacOS X audio locking 2002-04-13 23:31:07 +00:00
mint Small bugfixes 2003-08-30 20:00:11 +00:00
mme Date: Fri, 12 Dec 2003 11:51:21 +0900 2003-12-14 06:28:07 +00:00
nas IRIX patches from Andrea Suatoni 2003-03-06 06:12:41 +00:00
nto Date: Sat, 13 Sep 2003 15:50:43 +0300 2003-09-21 18:13:48 +00:00
openbsd *** empty log message *** 2002-11-17 18:59:10 +00:00
paudio Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
riscos Added audio and CD-ROM support for OSF/Tru64 (thanks Hayashi!) 2003-07-22 14:01:21 +00:00
sun Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
ums Initial revision 2001-04-26 16:45:43 +00:00
windib Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
windx5 Removed unused function 2002-08-24 17:30:49 +00:00
.cvsignore Initial revision 2001-04-26 16:45:43 +00:00
Makefile.am Added audio and CD-ROM support for OSF/Tru64 (thanks Hayashi!) 2003-07-22 14:01:21 +00:00
SDL_audio.c Date: Sat, 2 Aug 2003 16:22:51 +0300 2003-08-04 00:52:42 +00:00
SDL_audio_c.h Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
SDL_audiocvt.c Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
SDL_audiodev.c Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
SDL_audiodev_c.h Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
SDL_audiomem.c Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
SDL_audiomem.h Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
SDL_mixer.c Greatly simplified the SDL CPU info code 2003-11-24 09:22:12 +00:00
SDL_mixer_m68k.c Add m68k assembly mixing routines 2003-06-03 19:35:10 +00:00
SDL_mixer_m68k.h Add m68k assembly mixing routines 2003-06-03 19:35:10 +00:00
SDL_mixer_MMX.c Added MMX audio mixing code for gcc (thanks Stephane!) 2002-11-09 06:13:28 +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_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_sysaudio.h Date: Sat, 2 Aug 2003 16:22:51 +0300 2003-08-04 00:52:42 +00:00
SDL_wave.c Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
SDL_wave.h *** empty log message *** 2003-09-21 19:25:45 +00:00