projects
/
platform
/
upstream
/
libvorbis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Numerous corrections and updates to libVorbisfile docs
[platform/upstream/libvorbis.git]
/
doc
/
vorbisfile
/
example.html
diff --git
a/doc/vorbisfile/example.html
b/doc/vorbisfile/example.html
index
2a5cfaf
..
12977f1
100644
(file)
--- a/
doc/vorbisfile/example.html
+++ b/
doc/vorbisfile/example.html
@@
-1,15
+1,15
@@
<html>
<head>
<html>
<head>
-<title>
v
orbisfile - Example Code</title>
+<title>
V
orbisfile - Example Code</title>
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
<table border=0 width=100%>
<tr>
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
<table border=0 width=100%>
<tr>
-<td><p class=tiny>
v
orbisfile documentation</p></td>
-<td align=right><p class=tiny>
vorbisfile version 1.25 - 20000615
</p></td>
+<td><p class=tiny>
V
orbisfile documentation</p></td>
+<td align=right><p class=tiny>
libVorbisfile version 1.65 - 20020702
</p></td>
</tr>
</table>
</tr>
</table>
@@
-17,11
+17,11
@@
<p>
The following is a run-through of the decoding example program supplied
<p>
The following is a run-through of the decoding example program supplied
-with
vorbisfile - <a href="vorbisfile_example_c.html">vorbisfile_example.c</a>
.
+with
libvorbisfile, vorbisfile_example.c
.
This program takes a vorbis bitstream from stdin and writes raw pcm to stdout.
<p>
This program takes a vorbis bitstream from stdin and writes raw pcm to stdout.
<p>
-First, relevant headers, including vorbis-specific "codec.h" and "vorbisfile.h" have to be included.
+First, relevant headers, including vorbis-specific "
vorbis/
codec.h" and "vorbisfile.h" have to be included.
<br><br>
<table border=0 width=100% color=black cellspacing=0 cellpadding=7>
<br><br>
<table border=0 width=100% color=black cellspacing=0 cellpadding=7>
@@
-32,7
+32,7
@@
First, relevant headers, including vorbis-specific "codec.h" and "vorbisfile.h"
#include <stdlib.h>
#include <math.h>
#include "vorbis/codec.h"
#include <stdlib.h>
#include <math.h>
#include "vorbis/codec.h"
-#include "vorbis
/vorbis
file.h"
+#include "vorbisfile.h"
</b></pre>
</td>
</tr>
</b></pre>
</td>
</tr>
@@
-123,6
+123,8
@@
We also want to pull out and show the user a comment attached to the file using
++ptr;
}
fprintf(stderr,"\nBitstream is %d channel, %ldHz\n",vi->channels,vi->rate);
++ptr;
}
fprintf(stderr,"\nBitstream is %d channel, %ldHz\n",vi->channels,vi->rate);
+ fprintf(stderr,"\nDecoded length: %ld samples\n",
+ (long)ov_pcm_total(&vf,-1));
fprintf(stderr,"Encoded by: %s\n\n",ov_comment(&vf,-1)->vendor);
}
fprintf(stderr,"Encoded by: %s\n\n",ov_comment(&vf,-1)->vendor);
}
@@
-141,7
+143,7
@@
Here's the read loop:
<pre><b>
while(!eof){
<pre><b>
while(!eof){
- long ret=ov_read(&vf,pcmout,sizeof(pcmout),
0,2,1,
¤t_section);
+ long ret=ov_read(&vf,pcmout,sizeof(pcmout),¤t_section);
if (ret == 0) {
/* EOF */
eof=1;
if (ret == 0) {
/* EOF */
eof=1;
@@
-185,18
+187,16
@@
Now that we've finished playing, we can pack up and go home. It's important to
</table>
<p>
</table>
<p>
-The full source for vorbisfile_example.c can be found with the vorbis
-distribution in <a href="vorbisfile_example_c.html">vorbisfile_example.c</a>.
<br><br>
<hr noshade>
<table border=0 width=100%>
<tr valign=top>
<br><br>
<hr noshade>
<table border=0 width=100%>
<tr valign=top>
-<td><p class=tiny>copyright © 200
0 vorbis team
</p></td>
-<td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a><
br><a href="mailto:team@vorbis.org">team@vorbis.org</a><
/p></td>
+<td><p class=tiny>copyright © 200
2 Xiph.org
</p></td>
+<td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/">Ogg Vorbis</a></p></td>
</tr><tr>
</tr><tr>
-<td><p class=tiny>
v
orbisfile documentation</p></td>
-<td align=right><p class=tiny>
vorbisfile version 1.25 - 20000615
</p></td>
+<td><p class=tiny>
V
orbisfile documentation</p></td>
+<td align=right><p class=tiny>
libVorbisfile version 1.65 - 20020702
</p></td>
</tr>
</table>
</tr>
</table>