[xiph-cvs] cvs commit: vorbis/lib info.c
Monty
xiphmont at xiph.org
Mon Sep 23 14:47:00 PDT 2002
xiphmont 02/09/23 17:46:59
Modified: lib info.c
Log:
Add timebase conversion call
Revision Changes Path
1.60 +6 -1 vorbis/lib/info.c
Index: info.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/info.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- info.c 18 Jul 2002 01:43:09 -0000 1.59
+++ info.c 23 Sep 2002 21:46:59 -0000 1.60
@@ -11,7 +11,7 @@
********************************************************************
function: maintain the info structure, info <-> header packets
- last mod: $Id: info.c,v 1.59 2002/07/18 01:43:09 xiphmont Exp $
+ last mod: $Id: info.c,v 1.60 2002/09/23 21:46:59 xiphmont Exp $
********************************************************************/
@@ -596,3 +596,8 @@
return(ret);
}
+double vorbis_granule_time(vorbis_dsp_state *v,ogg_int64_t granulepos){
+ if(granulepos>=0)
+ return((double)granulepos/v->vi->rate);
+ return(-1);
+}
<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