comparison docs/html/sdlmixaudio.html @ 0:74212992fb08

Initial revision
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 16:45:43 +0000
parents
children 55f1f1b3e27d
comparison
equal deleted inserted replaced
-1:000000000000 0:74212992fb08
1 <HTML
2 ><HEAD
3 ><TITLE
4 >SDL_MixAudio</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.61
8 "><LINK
9 REL="HOME"
10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK
12 REL="UP"
13 TITLE="Audio"
14 HREF="audio.html"><LINK
15 REL="PREVIOUS"
16 TITLE="SDL_ConvertAudio"
17 HREF="sdlconvertaudio.html"><LINK
18 REL="NEXT"
19 TITLE="SDL_LockAudio"
20 HREF="sdllockaudio.html"></HEAD
21 ><BODY
22 CLASS="REFENTRY"
23 BGCOLOR="#FFF8DC"
24 TEXT="#000000"
25 LINK="#0000ee"
26 VLINK="#551a8b"
27 ALINK="#ff0000"
28 ><DIV
29 CLASS="NAVHEADER"
30 ><TABLE
31 WIDTH="100%"
32 BORDER="0"
33 CELLPADDING="0"
34 CELLSPACING="0"
35 ><TR
36 ><TH
37 COLSPAN="3"
38 ALIGN="center"
39 >SDL Library Documentation</TH
40 ></TR
41 ><TR
42 ><TD
43 WIDTH="10%"
44 ALIGN="left"
45 VALIGN="bottom"
46 ><A
47 HREF="sdlconvertaudio.html"
48 >Prev</A
49 ></TD
50 ><TD
51 WIDTH="80%"
52 ALIGN="center"
53 VALIGN="bottom"
54 ></TD
55 ><TD
56 WIDTH="10%"
57 ALIGN="right"
58 VALIGN="bottom"
59 ><A
60 HREF="sdllockaudio.html"
61 >Next</A
62 ></TD
63 ></TR
64 ></TABLE
65 ><HR
66 ALIGN="LEFT"
67 WIDTH="100%"></DIV
68 ><H1
69 ><A
70 NAME="SDLMIXAUDIO"
71 >SDL_MixAudio</A
72 ></H1
73 ><DIV
74 CLASS="REFNAMEDIV"
75 ><A
76 NAME="AEN6485"
77 ></A
78 ><H2
79 >Name</H2
80 >SDL_MixAudio&nbsp;--&nbsp;Mix audio data</DIV
81 ><DIV
82 CLASS="REFSYNOPSISDIV"
83 ><A
84 NAME="AEN6488"
85 ></A
86 ><H2
87 >Synopsis</H2
88 ><DIV
89 CLASS="FUNCSYNOPSIS"
90 ><A
91 NAME="AEN6489"
92 ></A
93 ><P
94 ></P
95 ><PRE
96 CLASS="FUNCSYNOPSISINFO"
97 >#include "SDL.h"</PRE
98 ><P
99 ><CODE
100 ><CODE
101 CLASS="FUNCDEF"
102 >void <B
103 CLASS="FSFUNC"
104 >SDL_MixAudio</B
105 ></CODE
106 >(Uint8 *dst, Uint8 *src, Uint32 len, int volume);</CODE
107 ></P
108 ><P
109 ></P
110 ></DIV
111 ></DIV
112 ><DIV
113 CLASS="REFSECT1"
114 ><A
115 NAME="AEN6495"
116 ></A
117 ><H2
118 >Description</H2
119 ><P
120 >This takes two audio buffers of the playing audio format and mixes
121 them, performing addition, volume adjustment, and overflow clipping.
122 The <TT
123 CLASS="PARAMETER"
124 ><I
125 >volume</I
126 ></TT
127 > ranges from 0 - 128,
128 and should be set to <TT
129 CLASS="LITERAL"
130 >SDL_MIX_MAXVOLUME</TT
131 >
132 for full audio volume. Note this does not change hardware volume.
133 This is provided for convenience -- you can mix your own audio data.</P
134 ></DIV
135 ><DIV
136 CLASS="REFSECT1"
137 ><A
138 NAME="AEN6500"
139 ></A
140 ><H2
141 >See Also</H2
142 ><P
143 ><A
144 HREF="sdlopenaudio.html"
145 ><TT
146 CLASS="FUNCTION"
147 >SDL_OpenAudio</TT
148 ></A
149 ></P
150 ></DIV
151 ><DIV
152 CLASS="NAVFOOTER"
153 ><HR
154 ALIGN="LEFT"
155 WIDTH="100%"><TABLE
156 WIDTH="100%"
157 BORDER="0"
158 CELLPADDING="0"
159 CELLSPACING="0"
160 ><TR
161 ><TD
162 WIDTH="33%"
163 ALIGN="left"
164 VALIGN="top"
165 ><A
166 HREF="sdlconvertaudio.html"
167 >Prev</A
168 ></TD
169 ><TD
170 WIDTH="34%"
171 ALIGN="center"
172 VALIGN="top"
173 ><A
174 HREF="index.html"
175 >Home</A
176 ></TD
177 ><TD
178 WIDTH="33%"
179 ALIGN="right"
180 VALIGN="top"
181 ><A
182 HREF="sdllockaudio.html"
183 >Next</A
184 ></TD
185 ></TR
186 ><TR
187 ><TD
188 WIDTH="33%"
189 ALIGN="left"
190 VALIGN="top"
191 >SDL_ConvertAudio</TD
192 ><TD
193 WIDTH="34%"
194 ALIGN="center"
195 VALIGN="top"
196 ><A
197 HREF="audio.html"
198 >Up</A
199 ></TD
200 ><TD
201 WIDTH="33%"
202 ALIGN="right"
203 VALIGN="top"
204 >SDL_LockAudio</TD
205 ></TR
206 ></TABLE
207 ></DIV
208 ></BODY
209 ></HTML
210 >