********************************************************************
function: PCM data vector blocking, windowing and dis/reassembly
- last mod: $Id: block.c,v 1.28 2000/03/10 13:21:18 xiphmont Exp $
+ last mod: $Id: block.c,v 1.29 2000/04/03 08:30:49 xiphmont Exp $
Handle windowing, overlap-add, etc of the PCM vectors. This is made
more amusing by Vorbis' current two allowed block sizes.
vb->localtop=0;
}
{
- void *ret=vb->localstore+vb->localtop;
+ void *ret=(void *)(((char *)vb->localstore)+vb->localtop);
vb->localtop+=bytes;
return ret;
}
********************************************************************
function: basic codebook pack/unpack/code/decode operations
- last mod: $Id: codebook.c,v 1.12 2000/03/10 13:21:18 xiphmont Exp $
+ last mod: $Id: codebook.c,v 1.13 2000/04/03 08:30:49 xiphmont Exp $
********************************************************************/
#include <stdlib.h>
+#include <string.h>
#include <math.h>
#include "vorbis/codec.h"
#include "vorbis/codebook.h"
********************************************************************
function: psychoacoustics not including preecho
- last mod: $Id: psy.c,v 1.17 2000/03/10 13:21:18 xiphmont Exp $
+ last mod: $Id: psy.c,v 1.18 2000/04/03 08:30:49 xiphmont Exp $
********************************************************************/
#include "vorbis/codec.h"
#include "psy.h"
+#include "os.h"
#include "lpc.h"
#include "smallft.h"
#include "scales.h"
function: simple utility that runs audio through the psychoacoustics
without encoding
- last mod: $Id: psytune.c,v 1.1 2000/02/25 11:05:32 xiphmont Exp $
+ last mod: $Id: psytune.c,v 1.2 2000/04/03 08:30:49 xiphmont Exp $
********************************************************************/
#include <math.h>
#include "vorbis/codec.h"
+#include "os.h"
#include "psy.h"
#include "mdct.h"
#include "window.h"
********************************************************************
function: stdio-based convenience library for opening/seeking/decoding
- last mod: $Id: vorbisfile.c,v 1.17 2000/03/10 16:23:57 xiphmont Exp $
+ last mod: $Id: vorbisfile.c,v 1.18 2000/04/03 08:30:49 xiphmont Exp $
********************************************************************/
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
#include <math.h>
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
}
}
- return(time_total+(vf->pcm_offset-pcm_total)/vf->vi[link].rate);
+ return((double)time_total+(double)(vf->pcm_offset-pcm_total)/vf->vi[link].rate);
}
/* link: -1) return the vorbis_info struct for the bitstream section