search for: spx_size

Displaying 3 results from an estimated 3 matches for "spx_size".

2010 Mar 19
4
Speex in flash player: how to work with?
Nicer way: void* speexState = speex_encoder_init(&speex_wb_mode); int speexFrameSize, speexRate; speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize); speex_encoder_ctl(speexState, SPEEX_GET_SAMPLING_RATE, &speexRate); SpeexPreprocessState* speexPreprocessState = speex_preprocess_state_init(speexFrameSize, speexRate); Jozsef -----Original Message----- From: Max
2010 Mar 30
0
Speex in flash player: how to work with?
...e); speex_decoder_ctl(driver->decoder, SPEEX_GET_FRAME_SIZE, &driver->frame_size); speex_decoder_ctl(driver->decoder, SPEEX_GET_SAMPLING_RATE, &driver->sample_rate); driver->den = speex_preprocess_state_init(driver->frame_size, driver->sample_rate); ... spx_int16_t rec[SPX_SIZE]; // -- here I copy incoming packets, which are 10 or 52 bytes long. speex_preprocess_run(driver->den, rec); // Here I get segfault. It is really not clear for me, how speex understand what size of data is expected. Maybe I'm doing something wrong?
2010 Mar 31
1
Speex in flash player: how to work with?
...e); speex_decoder_ctl(driver->decoder, SPEEX_GET_FRAME_SIZE, &driver->frame_size); speex_decoder_ctl(driver->decoder, SPEEX_GET_SAMPLING_RATE, &driver->sample_rate); driver->den = speex_preprocess_state_init(driver->frame_size, driver->sample_rate); ... spx_int16_t rec[SPX_SIZE]; // -- here I copy incoming packets, which are 10 or 52 bytes long. speex_preprocess_run(driver->den, rec); // Here I get segfault. It is really not clear for me, how speex understand what size of data is expected. Maybe I'm doing something wrong?