Displaying 1 result from an estimated 1 matches for "stereost".
Did you mean:
stereos
2007 Apr 02
1
Problems with stereo data
...gv[]) {
FILE* fin = fopen(argv[1], "rb");
FILE* fout = fopen(argv[2], "wb");
void* State = speex_decoder_init(&speex_wb_mode);
SpeexBits Bits;
speex_bits_init(&Bits);
const int FrameSize = 320;
short Output[FrameSize];
short BytesToRead;
char Buffer[1024];
SpeexStereoState StereoState = SPEEX_STEREO_STATE_INIT;
while (!feof(fin)) {
fread(&BytesToRead, sizeof(short), 1, fin);
fread(Buffer, 1, BytesToRead, fin);
speex_bits_read_from(&Bits, Buffer, BytesToRead);
speex_decode_int(State, &Bits, Output);
speex_decode_stereo_int(Output, FrameSize, &...