new ectl calls for lowpass and impulse block tweaking
[platform/upstream/libvorbis.git] / examples / encoder_example.c
index 62daf84..05574c8 100644 (file)
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: simple example encoder
- last mod: $Id: encoder_example.c,v 1.42 2002/06/30 08:45:02 xiphmont Exp $
+ last mod: $Id: encoder_example.c,v 1.43 2002/07/01 11:20:09 xiphmont Exp $
 
  ********************************************************************/
 
@@ -96,12 +96,13 @@ int main(){
   /* choose an encoding mode */
   /* (quality mode .4: 44kHz stereo coupled, roughly 128kbps VBR) */
   vorbis_info_init(&vi);
+  
+  vorbis_encode_init(&vi,2,44100,-1,80000,-1);
+  //vorbis_encode_init_vbr(&vi,2,44100,-.1);
 
-  vorbis_encode_setup_managed(&vi,2,44100,-1,128000,-1);
-  //vorbis_encode_init(&vi,2,44100,-1,128000,-1);
-  //vorbis_encode_init_vbr(&vi,2,44100,.45);
-  vorbis_encode_ctl(&vi,OV_ECTL_RATEMANAGE_AVG,NULL);
-  vorbis_encode_setup_init(&vi);
+  //vorbis_encode_setup_managed(&vi,2,44100,-1,128000,-1);
+  //vorbis_encode_ctl(&vi,OV_ECTL_RATEMANAGE_AVG,NULL);
+  //vorbis_encode_setup_init(&vi);
 
   /* add a comment */
   vorbis_comment_init(&vc);