|
|
|
@ -535,13 +535,13 @@ hsBool plSpeex::Init(Mode mode)
|
|
|
|
|
|
|
|
|
|
if(mode == kNarrowband) |
|
|
|
|
{ |
|
|
|
|
fEncoderState = speex_encoder_init(&speex_nb_mode); // narrowband
|
|
|
|
|
fDecoderState = speex_decoder_init(&speex_nb_mode); |
|
|
|
|
fEncoderState = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); // narrowband
|
|
|
|
|
fDecoderState = speex_decoder_init(speex_lib_get_mode(SPEEX_MODEID_NB)); |
|
|
|
|
} |
|
|
|
|
else if(mode == kWideband) |
|
|
|
|
{ |
|
|
|
|
fEncoderState = speex_encoder_init(&speex_wb_mode); |
|
|
|
|
fDecoderState = speex_decoder_init(&speex_wb_mode); |
|
|
|
|
fEncoderState = speex_encoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); |
|
|
|
|
fDecoderState = speex_decoder_init(speex_lib_get_mode(SPEEX_MODEID_WB)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
speex_encoder_ctl(fEncoderState, SPEEX_GET_FRAME_SIZE, &fFrameSize); // get frame size
|
|
|
|
|