search for: decoder_init_func

Displaying 2 results from an estimated 2 matches for "decoder_init_func".

2010 Sep 06
0
encode and decode
...3; int i=0,j=0; char ch=0; int in=0,temp=0; char out_ascii[640]={0}; float output[FRAME_SIZE];//the originals 160 words in float short out[FRAME_SIZE];//the originals 160 words char cbits[nbBytes]; void *state;//hold the state of the decoder SpeexMode speex_nb_mode; SpeexBits bits; state=decoder_init_func(& speex_nb_mode);//initializing a speex decoder speex_decoder_ctl(state,SPEEX_SET_MODE,&temp); speex_bits_init(&bits); we get the data throw RS232, and convert the decoded (supose to be the original or close to it) to ASCII, so we can simply play it in MATLAB: system("mod...
2010 Sep 06
0
encoding on a ds'pic and decoding on a pc
...int mode = 3; int i=0,j=0; char ch=0; int in=0,temp=0; char out_ascii[640]={0}; float output[FRAME_SIZE];//the originals 160 words in float short out[FRAME_SIZE];//the originals 160 words char cbits[nbBytes]; void *state;//hold the state of the decoder SpeexMode speex_nb_mode; SpeexBits bits; state=decoder_init_func(& speex_nb_mode);//initializing a speex decoder speex_decoder_ctl(state,SPEEX_SET_MODE,&temp); speex_bits_init(&bits); we get the data throw RS232, and convert the decoded (supose to be the original or close to it) to ASCII, so we can simply play it in MATLAB: system("mode com1...