[xiph-cvs] cvs commit: vorbis-python/test ogg123.py short.py

Andrew Catham Master of Python andrew at xiph.org
Thu Aug 30 19:04:29 PDT 2001



andrew      01/08/30 19:04:28

  Modified:    .        ChangeLog
               src      pyvorbisfile.c
               test     ogg123.py short.py
  Log:
  8-30-2001  Andrew H. Chatham <andrew.chatham at duke.edu>
          * src/pyvorbisfile.c (py_ov_pcm_seek[_page]) Use the implementation
            of arg_to_int64 provided by the ogg module
  
          * test/*.py: updated to use the new ao module's API

Revision  Changes    Path
1.4       +6 -0      vorbis-python/ChangeLog

Index: ChangeLog
===================================================================
RCS file: /usr/local/cvsroot/vorbis-python/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ChangeLog	2001/06/01 20:54:45	1.3
+++ ChangeLog	2001/08/31 02:04:27	1.4
@@ -1,3 +1,9 @@
+8-30-2001  Andrew H. Chatham <andrew.chatham at duke.edu>
+	* src/pyvorbisfile.c (py_ov_pcm_seek[_page]) Use the implementation
+	  of arg_to_int64 provided by the ogg module
+
+	* test/*.py: updated to use the new ao module's API
+	
 6-01-2001  Andrew H. Chatham <andrew.chatham at duke.edu>
         * src/pyvorbisinfo.c  (py_comment_as_dict): Fixed call with args=NULL
         ogg123.py works now

1.4       +2 -2      vorbis-python/src/pyvorbisfile.c

Index: pyvorbisfile.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-python/src/pyvorbisfile.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- pyvorbisfile.c	2001/06/01 20:54:46	1.3
+++ pyvorbisfile.c	2001/08/31 02:04:28	1.4
@@ -423,7 +423,7 @@
   if(!PyArg_ParseTuple(args, "O", &longobj))
     return NULL;
  
-  if (!arg_to_int64(longobj, &pos))
+  if (!modinfo->arg_to_int64(longobj, &pos))
     return NULL;
 
   val = ov_pcm_seek(ov_self->ovf, pos);
@@ -441,7 +441,7 @@
   if(!PyArg_ParseTuple(args, "O", &longobj)) 
     return NULL;
 
-  if (!arg_to_int64(longobj, &pos))
+  if (!modinfo->arg_to_int64(longobj, &pos))
     return NULL;
 
   val = ov_pcm_seek_page(ov_self->ovf, pos);

1.4       +1 -1      vorbis-python/test/ogg123.py

Index: ogg123.py
===================================================================
RCS file: /usr/local/cvsroot/vorbis-python/test/ogg123.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ogg123.py	2001/06/01 20:54:47	1.3
+++ ogg123.py	2001/08/31 02:04:28	1.4
@@ -98,7 +98,7 @@
     def __init__(self, id=None):
         import ao
         if id is None:
-            id = ao.get_driver_id('esd')
+            id = ao.driver_id('esd')
         self.dev = ao.AudioDevice(id)
 
     def write(self, buff, bytes):

1.3       +1 -1      vorbis-python/test/short.py

Index: short.py
===================================================================
RCS file: /usr/local/cvsroot/vorbis-python/test/short.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- short.py	2001/05/14 15:37:46	1.2
+++ short.py	2001/08/31 02:04:28	1.3
@@ -10,7 +10,7 @@
 SIZE = 4096
 
 vf = ogg.vorbis.VorbisFile(filename)
-id = ao.get_driver_id(device)
+id = ao.driver_id(device)
 ao = ao.AudioDevice(id)
 
 while 1:

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