[tremor] ov_time_total & 0.f
Monty
xiphmont at xiph.org
Sun Mar 30 14:40:50 PST 2003
On Sun, Mar 30, 2003 at 02:00:39PM -0600, slothead wrote:
>
> ogg_int64_t ov_time_total(OggVorbis_File *vf,int i){
> if(vf->ready_state<OPENED)return(OV_EINVAL);
> if(!vf->seekable || i>=vf->links)return(OV_EINVAL);
> if(i<0){
> ogg_int64_t acc=0;
> int i;
> for(i=0;i<vf->links;i++)
> acc+=ov_time_total(vf,i);
> return(acc);
> }else{
> //return(((ogg_int64_t)vf->pcmlengths[i])*1000/vf->vi[i].rate);
> // 30-Mar-2003: above looks like a bug: should be pcmlengths[i*2+1]
> return(((ogg_int64_t)vf->pcmlengths[i*2+1])*1000/vf->vi[i].rate);
The above was not a bug. Why do you expect it should be i*2+1?
> There's also a stray
>
> 0.f
>
> in there, somewhere.
...which I cannot find. Why do you think there's a stray float constant?
Monty
--- >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 'tremor-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 Tremor
mailing list