[xiph-cvs] cvs commit: vorbis/examples encoder_example.c
Monty
xiphmont at xiph.org
Tue Jul 16 02:26:07 PDT 2002
xiphmont 02/07/16 02:26:07
Modified: examples encoder_example.c
Log:
Kill a comment example typo
Revision Changes Path
1.50 +5 -6 vorbis/examples/encoder_example.c
Index: encoder_example.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/examples/encoder_example.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- encoder_example.c 2002/07/13 06:12:45 1.49
+++ encoder_example.c 2002/07/16 09:26:07 1.50
@@ -11,7 +11,7 @@
********************************************************************
function: simple example encoder
- last mod: $Id: encoder_example.c,v 1.49 2002/07/13 06:12:45 xiphmont Exp $
+ last mod: $Id: encoder_example.c,v 1.50 2002/07/16 09:26:07 xiphmont Exp $
********************************************************************/
@@ -68,7 +68,7 @@
#ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */
/* if we were reading/writing a file, it would also need to in
- binary mode, eg, 'fopen("file.wav","rb"); */
+ binary mode, eg, fopen("file.wav","wb"); */
/* Beware the evil ifdef. We avoid these where we can, but this one we
cannot. Don't add any more, you'll probably go to hell if you do. */
_setmode( _fileno( stdin ), _O_BINARY );
@@ -105,7 +105,7 @@
(lowest quality, smallest file) to 1. (highest quality, largest file).
Example quality mode .4: 44kHz stereo coupled, roughly 128kbps VBR
- ret = vorbis_encode_init_vbr(&vi,2,44100,-.4);
+ ret = vorbis_encode_init_vbr(&vi,2,44100,.4);
---------------------------------------------------------------------
@@ -166,9 +166,8 @@
ogg_stream_packetin(&os,&header_comm);
ogg_stream_packetin(&os,&header_code);
- /* We don't have to write out here, but doing so makes streaming
- * much easier, so we do, flushing ALL pages. This ensures the actual
- * audio data will start on a new page
+ /* This ensures the actual
+ * audio data will start on a new page, as per spec
*/
while(!eos){
int result=ogg_stream_flush(&os,&og);
<p><p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list