Displaying 2 results from an estimated 2 matches for "consspexdec".
2007 Feb 13
1
Hello Guys
...sed data*/
fwrite(cbits, 1, nbBytes, fout/*stdout*/);
}
/*Destroy the encoder state*/
speex_encoder_destroy(state);
/*Destroy the bit-packing struct*/
speex_bits_destroy(&bits);
fclose(fin);
fclose(fout);
//delete inFile;
return 0;
}
Here is the decoder ::
================
// consSpexDec.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "speex.h"
#include <stdio.h>
#define FRAME_SIZE 160
int _tmain(int argc, _TCHAR* argv[])
{
char *outFile;
FILE *fout;
FILE *fin;
/*Holds the audio that will be written to...
2007 Feb 13
0
Hello guys Please help
...;
/*Write the compressed data*/
fwrite(cbits, 1, nbBytes, fout/*stdout*/);
}
/*Destroy the encoder state*/
speex_encoder_destroy(state);
/*Destroy the bit-packing struct*/
speex_bits_destroy(&bits);
fclose(fin);
fclose(fout);
//delete inFile;
return 0;
}
decoder :
======
// consSpexDec.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "speex.h"
#include <stdio.h>
#include <conio.h>
#define FRAME_SIZE 160
int _tmain(int argc, _TCHAR* argv[])
{
char *outFile;
FILE *fout;
FILE *fin;
/*Holds the audi...