search for: speex_uwb_mode

Displaying 15 results from an estimated 15 matches for "speex_uwb_mode".

2005 Jan 25
1
Is SPEEX_GET_QUALITY implemented ?
...------------test.c--------------------------------------- #include <stdio.h> #include <stdlib.h> #include <speex/speex.h> int main(int argc,char * args[]){ SpeexBits bits; void *enc_state; int Quality=9,tmp; speex_bits_init(&bits); enc_state=speex_encoder_init(&speex_uwb_mode); speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&Quality); speex_encoder_ctl(enc_state,SPEEX_GET_QUALITY,&tmp); printf("Quality is %d\n",tmp); } --------------------------------Result of program----------------------- tsapi:audio 151> a.out warning: Unknown nb_ctl requ...
2004 Aug 06
4
Framesize for UWB vs. WB encoding
...derstanding the frame sizes chosen by the codec. testenc_uwb.c from the speex-1.0 source distribution has a framesize of 640 hardcoded and makes use of this value exclusively. However, a mode query on the actual codec returns 320 as a framesize for this mode. int tmp; speex_mode_query(&speex_uwb_mode, SPEEX_MODE_FRAME_SIZE, &tmp); <p>testenc_wb.c from the speex-1.0 source distribution has a framesize of 320 hardcoded and makes use of this value exclusively. However, a mode query on the actual codec returns 160 as a framesize for this mode. int tmp; speex_mode_query(&speex...
2005 Sep 22
1
about SPEEX API
...ders to standart distribution packet (I'll send this to you if you wish). It will help for many developers. But... there was another problem. I think many pepople was ask you about that problem. Yes. It's DLL static variables named "speex_nb_mode", "speex_wb_mode", "speex_uwb_mode". There is no declaration of it in DLL file. Somebody give a solution: instead of this data use "speex_lib_get_mode". But there is NO declaration of this function in DLL file (I tryed to find it in latest available version for Win32 too). I was need to modificate speex source and reb...
2008 Mar 29
0
GCC/ELF Visibility patch
....c =================================================================== --- libspeex/modes_wb.c (revision 14645) +++ libspeex/modes_wb.c (working copy) @@ -52,7 +52,7 @@ #define NULL 0 #endif -const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode}; +EXPORT const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode}; extern const signed char hexc_table[]; extern const signed char hexc_10_32_table[]; @@ -200,7 +200,7 @@ }; -const SpeexMode speex_wb_mode = { +EXPORT const Spe...
2004 Aug 06
4
input format
just to check that I've got everything right. the encoder allows as input - mono only - 8 or 16 bits as floating point numbers (without scaling to 1.0). floating-point wavs (IEEE) will also work, but it's better to scale them to something like 8000. - any sample rate (should be set with speex_encoder_ctl), but prefered are 8/16/32 kHz. but what modes should I use for a given rate? also -
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
....c =================================================================== --- libspeex/modes_wb.c (revision 14645) +++ libspeex/modes_wb.c (working copy) @@ -52,7 +52,7 @@ #define NULL 0 #endif -const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode}; +EXPORT const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode}; extern const signed char hexc_table[]; extern const signed char hexc_10_32_table[]; @@ -200,7 +200,7 @@ }; -const SpeexMode speex_wb_mode = { +EXPORT const Spe...
2004 Aug 06
2
SPEEX_SET_USER_HANDLER once again
...l == -1){ return -1; //return DECODE_ENDOFSTREAM; } else if (retval == -2){ return -2; } ... // play the sample } } The second question, is there something wrong with the speex_uwb_mode since version 1.1? It don't work. Only speex_nb_mode and speex_wb_mode works. Norman ps: sorry for my pure english. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to '...
2004 Aug 06
0
input format
...lues with max 32000 scaling (prefered around 8000). > - any sample rate (should be set with speex_encoder_ctl), but prefered > are 8/16/32 kHz. but what modes should I use for a given rate? 8 kHz is narrowband (speex_nb_mode), 16 kHz is wideband (speex_wb_mode) and 32 kHz is ultra-wideband (speex_uwb_mode) > also > - what bit rates are allowed? Too many to list here: from around 2 kbps to 44 kbps > - what's the difference between quality and complexity? complexity > does not affect decoder speed while quality does? complexity means: take more (or less) CPU to do a better job at e...
2004 Aug 06
0
Framesize for UWB vs. WB encoding
...ec. > > testenc_uwb.c from the speex-1.0 source distribution has a framesize > of 640 hardcoded and makes use of this value exclusively. > > However, a mode query on the actual codec returns 320 as a framesize > for this mode. > > int tmp; > speex_mode_query(&speex_uwb_mode, SPEEX_MODE_FRAME_SIZE, &tmp); > > > testenc_wb.c from the speex-1.0 source distribution has a framesize > of 320 hardcoded and makes use of this value exclusively. > > However, a mode query on the actual codec returns 160 as a framesize > for this mode. > > in...
2009 Apr 13
0
encoding -> decoding doesnt work
...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); amountSamples = defaultfrequency * numchannels * 5; speex_bits_read_from(&dec_bits, encoded, total ); speex_decode_int( dec_state, &dec_bits, (shor...
2005 Sep 03
2
Library export file for Win32 (patch)
...r_timestamp @54 +speex_jitter_init @55 +speex_jitter_put @56 +speex_lib_get_mode @57 +speex_preprocess @58 +speex_preprocess_ctl @59 +speex_preprocess_estimate_update @60 +speex_preprocess_state_destroy @61 +speex_preprocess_state_init @62 +speex_nb_mode @63 DATA +speex_wb_mode @64 DATA +speex_uwb_mode @65 DATA
2004 Aug 06
0
SPEEX_SET_USER_HANDLER once again
...rn DECODE_ENDOFSTREAM; > } else if (retval == -2){ > return -2; > } > ... > > // play the sample > } > } > > The second question, is there something wrong with the speex_uwb_mode > since version 1.1? > It don't work. Only speex_nb_mode and speex_wb_mode works. > > Norman > > ps: sorry for my pure english. > > -- Jean-Marc Valin, M.Sc.A., ing. jr. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -...
2004 Aug 06
3
Error in my code
...'4320' A buffer size of '30720' was compressed to '4320' <p>The compiler returns me to the following line: speex_encode(enc_state, (float*)buffer, &bits); <p>This is how speex was initialised: speex_bits_init(&bits); enc_state = speex_encoder_init(&speex_uwb_mode); peex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frameSize); long x = 32000; speex_encoder_ctl(enc_state,SPEEX_SET_SAMPLING_RATE,&x); <p>What am I doing wrong? Compiler: Borland C++ Builder 6 Professional. OS: Windows XP Speex version: 1.01 Sound library: BASS 2.0 Thanks in adva...
2004 Aug 06
2
speed and memory
hello, i switched to use the encoder.processData() and encoder.getProcessedData() of jspeex. however it looks to me like a memory leak ... memory usage is increasing very fast and there is no visible stop ... after about five minutes java.lang.OutOfMemory occurs. I think it must be the jspeex component, because before i added jspeex to my app usage was constant at about 5mb. is it possible
2004 Aug 06
2
[PATCH] Make SSE Run Time option. Add Win32 SSE code
.../libspeex/modes.c 2003-06-02 22:29:39.000000000 -0700 +++ speex-1.0.3/libspeex/modes.c 2004-01-08 20:46:26.000000000 -0800 @@ -45,6 +45,7 @@ #define NULL 0 #endif +int global_use_mmx_sse = 0; SpeexMode *speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode}; /* Extern declarations for all codebooks we use here */ @@ -585,16 +586,27 @@ int speex_encoder_ctl(void *state, int request, void *ptr) { - return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); + if (request == SPEEX_SET_ASM_FLAG) + { + global_use_m...