Mercurial > sdl-ios-xcode
annotate docs/html/reference.html @ 765:4c2ba6161939
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 04 Jan 2004 15:40:50 +0000 |
parents | 55f1f1b3e27d |
children | 355632dca928 |
rev | line source |
---|---|
0 | 1 <HTML |
2 ><HEAD | |
3 ><TITLE | |
4 >SDL Reference</TITLE | |
5 ><META | |
6 NAME="GENERATOR" | |
55
55f1f1b3e27d
Added new docs for SDL 1.2.1
Sam Lantinga <slouken@lokigames.com>
parents:
0
diff
changeset
|
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
0 | 8 "><LINK |
9 REL="HOME" | |
10 TITLE="SDL Library Documentation" | |
11 HREF="index.html"><LINK | |
12 REL="PREVIOUS" | |
13 TITLE="Time Examples" | |
14 HREF="guidetimeexamples.html"><LINK | |
15 REL="NEXT" | |
16 TITLE="General" | |
17 HREF="general.html"></HEAD | |
18 ><BODY | |
19 CLASS="PART" | |
20 BGCOLOR="#FFF8DC" | |
21 TEXT="#000000" | |
22 LINK="#0000ee" | |
23 VLINK="#551a8b" | |
24 ALINK="#ff0000" | |
25 ><DIV | |
26 CLASS="NAVHEADER" | |
27 ><TABLE | |
28 WIDTH="100%" | |
29 BORDER="0" | |
30 CELLPADDING="0" | |
31 CELLSPACING="0" | |
32 ><TR | |
33 ><TH | |
34 COLSPAN="3" | |
35 ALIGN="center" | |
36 >SDL Library Documentation</TH | |
37 ></TR | |
38 ><TR | |
39 ><TD | |
40 WIDTH="10%" | |
41 ALIGN="left" | |
42 VALIGN="bottom" | |
43 ><A | |
44 HREF="guidetimeexamples.html" | |
45 >Prev</A | |
46 ></TD | |
47 ><TD | |
48 WIDTH="80%" | |
49 ALIGN="center" | |
50 VALIGN="bottom" | |
51 ></TD | |
52 ><TD | |
53 WIDTH="10%" | |
54 ALIGN="right" | |
55 VALIGN="bottom" | |
56 ><A | |
57 HREF="general.html" | |
58 >Next</A | |
59 ></TD | |
60 ></TR | |
61 ></TABLE | |
62 ><HR | |
63 ALIGN="LEFT" | |
64 WIDTH="100%"></DIV | |
65 ><DIV | |
66 CLASS="PART" | |
67 ><A | |
68 NAME="REFERENCE" | |
69 ></A | |
70 ><DIV | |
71 CLASS="TITLEPAGE" | |
72 ><H1 | |
73 CLASS="TITLE" | |
74 >II. SDL Reference</H1 | |
75 ><DIV | |
76 CLASS="TOC" | |
77 ><DL | |
78 ><DT | |
79 ><B | |
80 >Table of Contents</B | |
81 ></DT | |
82 ><DT | |
83 >5. <A | |
84 HREF="general.html" | |
85 >General</A | |
86 ></DT | |
87 ><DT | |
88 >6. <A | |
89 HREF="video.html" | |
90 >Video</A | |
91 ></DT | |
92 ><DT | |
93 >7. <A | |
94 HREF="wm.html" | |
95 >Window Management</A | |
96 ></DT | |
97 ><DT | |
98 >8. <A | |
99 HREF="event.html" | |
100 >Events</A | |
101 ></DT | |
102 ><DT | |
103 >9. <A | |
104 HREF="joystick.html" | |
105 >Joystick</A | |
106 ></DT | |
107 ><DT | |
108 >10. <A | |
109 HREF="audio.html" | |
110 >Audio</A | |
111 ></DT | |
112 ><DT | |
113 >11. <A | |
114 HREF="cdrom.html" | |
115 >CD-ROM</A | |
116 ></DT | |
117 ><DT | |
118 >12. <A | |
119 HREF="thread.html" | |
120 >Multi-threaded Programming</A | |
121 ></DT | |
122 ><DT | |
123 >13. <A | |
124 HREF="time.html" | |
125 >Time</A | |
126 ></DT | |
127 ></DL | |
128 ></DIV | |
129 ></DIV | |
130 ></DIV | |
131 ><DIV | |
132 CLASS="NAVFOOTER" | |
133 ><HR | |
134 ALIGN="LEFT" | |
135 WIDTH="100%"><TABLE | |
136 WIDTH="100%" | |
137 BORDER="0" | |
138 CELLPADDING="0" | |
139 CELLSPACING="0" | |
140 ><TR | |
141 ><TD | |
142 WIDTH="33%" | |
143 ALIGN="left" | |
144 VALIGN="top" | |
145 ><A | |
146 HREF="guidetimeexamples.html" | |
147 >Prev</A | |
148 ></TD | |
149 ><TD | |
150 WIDTH="34%" | |
151 ALIGN="center" | |
152 VALIGN="top" | |
153 ><A | |
154 HREF="index.html" | |
155 >Home</A | |
156 ></TD | |
157 ><TD | |
158 WIDTH="33%" | |
159 ALIGN="right" | |
160 VALIGN="top" | |
161 ><A | |
162 HREF="general.html" | |
163 >Next</A | |
164 ></TD | |
165 ></TR | |
166 ><TR | |
167 ><TD | |
168 WIDTH="33%" | |
169 ALIGN="left" | |
170 VALIGN="top" | |
171 >Time Examples</TD | |
172 ><TD | |
173 WIDTH="34%" | |
174 ALIGN="center" | |
175 VALIGN="top" | |
176 > </TD | |
177 ><TD | |
178 WIDTH="33%" | |
179 ALIGN="right" | |
180 VALIGN="top" | |
181 >General</TD | |
182 ></TR | |
183 ></TABLE | |
184 ></DIV | |
185 ></BODY | |
186 ></HTML | |
187 > |