Displaying 1 result from an estimated 1 matches for "dec_mod".
Did you mean:
dec_mode
2009 Apr 13
0
encoding -> decoding doesnt work
...uot;\n\nTotally: %u\nper Item: %f\n\n", total,
(float)total/(amountSamples/frame_size) );
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
// ###########################
// decoding
// ###########################
SpeexBits dec_bits;
void *dec_state;
const SpeexMode *dec_mode;
dec_mode = speex_lib_get_mode (SPEEX_MODEID_WB);
speex_bits_init(&dec_bits);
// speex_nb_mode = 8kHz
// speex_wb_mode = 16 kHz
// speex_uwb_mode = 32 kHz
dec_state = speex_decoder_init(dec_mode);
frame_size = 0;
speex_decoder_ctl(dec_state,SPEEX_GET_FRAME_SIZE,&frame_size);
a...