Displaying 2 results from an estimated 2 matches for "m_frame_size".
Did you mean:
frame_size
2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
...e <speex/speex.h>
#include <speex/speex_preprocess.h>
#include <stdio.h>
#define MAX_FRAME_SIZE 320
int main() {
FILE *fin, *fout;
short in[MAX_FRAME_SIZE];
char cbits[200];
int nbBytes = 0;
void *state;
SpeexBits bits;
int m_frame_size;
int m_channels = 1;
// SpeeX encode options
int m_bitrate = (8 << 10);
int m_complexity = 3;
int m_quality = 8;
int m_encMode = 6;
int m_iAGC = 0;
int m_iDenoise = 0;
SpeexPreprocessState *m_preProcesser;
int n...
2007 Dec 10
1
SpeexCodec run in linux of decode
...run to speex_encoder_destroy(state);
It shows that segmentation fault ,I feel comfused, could you tell
thanks!
#define MAX_FRAME_SIZE 320
int main()
{
FILE *fout;
char *inFile;
FILE *fin;
short out[MAX_FRAME_SIZE];
char cbits[200];
int nbBytes;
void *state;
SpeexBits bits;
//int tmp;
int m_frame_size;
speex_bits_init(&bits);
state = speex_decoder_init(&speex_nb_mode);
speex_decoder_ctl(state, SPEEX_GET_FRAME_SIZE, &m_frame_size);
//tmp = 1;
//speex_decoder_ctl(state, SPEEX_SET_ENH, &tmp);
//outFile = argv[1];
inFile = "out.spx";
fin = fopen(inFile, "r+b&...