[xiph-cvs] cvs commit: vorbis-tools/ogg123 ogg123.c

Jack Moffitt jack at xiph.org
Sun Oct 29 20:39:21 PST 2000



jack        00/10/29 20:39:21

  Modified:    ogg123   ogg123.c
  Log:
  uses libao correctly now (mostly)

Revision  Changes    Path
1.4       +5 -1      vorbis-tools/ogg123/ogg123.c

Index: ogg123.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/ogg123.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ogg123.c	2000/10/11 04:19:51	1.3
+++ ogg123.c	2000/10/30 04:39:21	1.4
@@ -14,7 +14,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: ogg123.c,v 1.3 2000/10/11 04:19:51 jack Exp $
+ last mod: $Id: ogg123.c,v 1.4 2000/10/30 04:39:21 jack Exp $
 
  ********************************************************************/
 
@@ -177,6 +177,8 @@
   devices *current;
   int bits, rate, channels;
 
+  ao_initialize();
+
   while (-1 != (ret = getopt_long (argc, argv, "d:hqo:vV:z",
                                    long_options, &option_index)))
     {
@@ -307,6 +309,8 @@
           ao_close(current->device);
           current = current->next_device;
   }
+
+  ao_shutdown();
 
   return (0);
 }

--- >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