History

Update docs to make handling of interleaved data more explicit.

Erik de Castro Lopo committed 19 years ago

Commit 91e39f01 parent 8933ec54 files · +32 −26Browse files

Unified · Split

4 files
  1. ChangeLog +5 −0
  2. doc/api.html +7 −10
  3. doc/api_callback.html +14 −12
  4. doc/api_misc.html +6 −4
ChangeLog+5−0
@@ -1,3 +1,8 @@
1+2007-01-21 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
2+
3+ * doc/api.html doc/api_callback.html doc/api_misc.html
4+ Update docs to make handling of interleaved data more explicit.
5+
16 2006-07-26 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
27
38 * examples/audio_out.c
doc/api.html+7−10
@@ -88,8 +88,14 @@ The API allows three methods for accessing the capabilies of the library: · 87 unmodified lines
8888 This interface is particularly well suited to applications where the output
8989 sample rate is varied with time.
9090 </UL>
91+
92+<P>
93+<b>NB :</b> All three access methods are able to process multi channel interleaved
94+data.
95+</P>
96+
9197 <P>
92−The parts of the API which are common to both are:
98+The parts of the API which are common to all three interfaces are:
9399 </P>
94100 <UL>
95101 <LI> The <A HREF="api_misc.html#ErrorReporting">error reporting</A> mechanisim.
@@ -119,12 +125,3 @@ distribution contain numerous example programs showing the use of the library. · 23 unmodified lines
119125
120126 </BODY>
121127 </HTML>
122−
123−<!--
124− Do not edit or modify anything in this comment block.
125− The arch-tag line is a file identity tag for the GNU Arch
126− revision control system.
127−
128− arch-tag: d1c3051e-f026-48e1-b72c-ff1dd8503272
129−-->
130−
doc/api_callback.html+14−12
@@ -73,6 +73,15 @@ The callback API consists of the following functions : · 72 unmodified lines
7373 int <A HREF="api_full.html#SetRatio">src_set_ratio</A> (SRC_STATE *state, double new_ratio) ;
7474 </PRE>
7575 <BR>
76+
77+<P>
78+Like the
79+ <A HREF="api_simple.html">simple API</a>
80+and the
81+ <A HREF="api_full.html">full API</a>,
82+the callback based API is able to operate on interleaved multi channel data.
83+</P>
84+
7685 <P>
7786 An example of the use of the callback based API can be found in the
7887 <B>varispeed-play</B> program in the <B>examples/</B> directory of the
@@ -127,10 +136,11 @@ function to pull data out of the converter. · 48 unmodified lines
127136 long frames, float *data) ;
128137 </PRE>
129138 <P>
130−The <B>src_callback_read</B> function is passed the <B>SRC_STATE</B> pointer
131−returned by <B>src_callback_new</B>, the coversion ratio (output_sample_rate
132−/ input_sample_rate), the maximum number of output frames to generate and a
133−pointer to a buffer in which to place the output data.
139+The <B>src_callback_read</B> function is passed the
140+ <A HREF="api_misc.html#SRC_DATA"><B>SRC_STATE</B></A>
141+pointer returned by <B>src_callback_new</B>, the coversion ratio
142+(output_sample_rate / input_sample_rate), the maximum number of output frames
143+to generate and a pointer to a buffer in which to place the output data.
134144 </P>
135145 <P>
136146 The <B>src_callback_read</B> function returns the number of frames generated
@@ -149,11 +159,3 @@ src_error</A> will return non-zero. · 12 unmodified lines
149159 </BODY>
150160 </HTML>
151161
152−<!--
153− Do not edit or modify anything in this comment block.
154− The arch-tag line is a file identity tag for the GNU Arch
155− revision control system.
156−
157− arch-tag: c80cf67e-b7a1-4701-a608-a1718c5aa57d
158−-->
159−
doc/api_misc.html+6−4
@@ -161,14 +161,16 @@ This struct is defined as: · 160 unmodified lines
161161 The <B>data_in</B> pointer is used to pass audio data into the converter while the
162162 <B>data_out</B> pointer supplies the converter with an array to hold the converter's
163163 output.
164+For a converter which has been configured for mulitchannel operation, these pointers
165+need to point to a single array of interleaved data.
164166 </P>
165167 <P>
166168 The <B>input_frames</B> and <B>output_frames</B> fields supply the converter with
167−the lengths of the arrays pointed to by the <B>data_in</B> and <b>data_out</B>
168−pointers respectively.
169+the lengths of the arrays (in frames) pointed to by the <B>data_in</B> and
170+<b>data_out</B> pointers respectively.
169171 For monophinc data, these values would indicate the length of the arrays while
170−for stereo data these values would be equal to the half the length of the array
171−and so on.
172+for multi channel data these values would be equal to the the length of the array
173+divided by the number of channels.
172174 </P>
173175
174176 <P>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t