********************************************************************
function: stdio-based convenience library for opening/seeking/decoding
- last mod: $Id: vorbisfile.c,v 1.22 2000/05/01 05:48:26 jon Exp $
+ last mod: $Id: vorbisfile.c,v 1.23 2000/05/16 11:38:36 msmith Exp $
********************************************************************/
if(host_endian==bigendianp){
if(sgned){
- short *dest;
for(i=0;i<channels;i++) { /* It's faster in this order */
double *src=pcm[i];
short *dest=((short *)buffer)+i;
dest+=channels;
}
}
- buffer=(char *)dest;
}else{
- short *dest;
for(i=0;i<channels;i++) {
double *src=pcm[i];
short *dest=((short *)buffer)+i;
dest+=channels;
}
}
- buffer=(char *)dest;
}
}else if(bigendianp){
for(j=0;j<samples;j++)