problem about speex-Collection of common programming errors
NREZ
ios memory-leaks instruments speex
I’ve been using Speex for a while now. Lately I discovered my app crashes sometimes during Speex encoding. When trying to discover where the problem comes from I discovered that Speex is leaking always and take huge amount of memory every time I used it.I call speex_resampler_init it calls speex_resampler_init_frac -> update_filter -> speex_alloc and it leaks. Can easily see that on instruments:I’m using precompiled Speex(1.2rc1) for iOS from here.Am I doing something wrong?Please help.
J.N.
c++ c speex
using speex_resampler_process_interleaved_int() in libspeex leads to crash, any help would be appreciated. I have to upsample from 16000 to 22050 ,below is my code:spx_uint32_t buf_len = arg->count; // arg is a struct which contains data buffer spx_uint32_t bufout_len = ((buf_len * 22050/16000) + 1); short *bufout = (short *)malloc(bufout_len); short *inbuf = (short *)arg->buf; int speex_err = 0; mspeex_src_state = speex_resampler_init(2,16000,22050,4,&speex_err); speex_err = speex_re
Mohsen Afshin
android memory-leaks android-ndk speex
I’m trying to decode Speex encoded audio files using Speex library but I always get ArrayIndexOutOfBoundsExceptionJNIEXPORT jint JNICALL Java_com_app_shared_Speex_decode(JNIEnv *env, jobject obj, jbyteArray encoded, jshortArray lin, jint size) {jbyte buffer[dec_frame_size ];jshort output_buffer[dec_frame_size ];jsize encoded_length = size;if (!codec_open)return 0;env->GetByteArrayRegion(encoded, rtp_header, encoded_length, buffer);/* jboolean isCopy;jbyte* data = env->GetByteArrayElements
Strilanc
c undefined-behavior speex
While trying to debug a problem I’m having using Speex, I noticed that it (well, not just speex, but some example code as well) does the following:Return a pointer to EncState from an initialization function Cast that pointer to a void pointer Store the void pointer (elsewhere) Cast the void pointer to a pointer to pointer to SpeexMode Dereference the pointerIt so happens that the definition of EncState starts with a field of type SpeexMode*, and so the integer values of a pointer to the first f
Employed Russian
linux linker ld static-linking speex
I need your help about this problem if anyone has info.I have configured speex1.2rc1 for xscale-elf (ARM architecture) ,then executed make and make install. So, I obtained libspeex.a in the /usr/local/lib with libogg.a compiled as well. but i when i link the library to my program (by adding LDFLAGS += -lspeex -lm), and try to compile, i get this error:/usr/lib/gcc/xscale-elf/3.4.3/../../../../xscale-elf/bin/ld: cannot find -lspeex collect2: ld returned 1 exit status make: *** [exe0] Error 1I pas
TheSquad
ios audiounit speex
I’m trying to encode/decode with speex, when I do not, the audio is loud and clear, but when I encode/decode to test audio quality, I get a really poor audio quality and a robotic sound.Here’s my init audio method : #define AUDIO_QUALITY 10 – (void) initAudio {try { //SPEEX CONFIGspeex_bits_init(&bits_in);speex_bits_init(&bits_out);enc_state = speex_encoder_init(&speex_nb_mode);dec_state = speex_decoder_init(&speex_nb_mode);int quality = AUDIO_QUALITY;speex_encoder_ctl(enc_stat
hsiltala
java audio speex jspeex nspeex
As topic states, I have no problem in encoding audio in Windows Phone 7 with NSpeex(v1.1.1, uses Speex v1.2rc1). I have verified this by first encoding a stream, and then right after decoding it back again, add wav headers and send it back to server on which the wav plays just fine. But if I send the encoded stream to server and try to decode it with JSpeex(v0.9.7, uses Speex v1.0.3) I only get StreamCorruptedExceptions of different sorts with fiddling with the decoding settings.Am I hitting ver
Web site is in building