search for: enc_ctl

Displaying 11 results from an estimated 11 matches for "enc_ctl".

Did you mean: enc_ctx
2004 Aug 06
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
..., SPEEX_GET_SAMPLING_RATE, &m_SampleRate ); I debugged the encoder and the stack trace is as follows: -> speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE, &m_SampleRate ); -> int speex_encoder_ctl(void *state, int request, void *ptr) return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); -> int sb_encoder_ctl(void *state, int request, void *ptr) ... case SPEEX_GET_SAMPLING_RATE: (*(int*)ptr)=st->sampling_rate; break; ... And st->sampling_rate is 2. I debugged some further and it seems: sb_encoder_init calls speex_decoder_ctl(st->st_low...
2005 May 02
1
Line-In Encoding
...coding nb) i got noise output. What is the solution to this, as i plan to do line-in encoding(as a person speaks encode it on the EDB) ? Can anybody tell me what actually happens when we change the quality and complexity settings? (how do the parameters affect the code -i tried to find where ENC_CTL is defined but couldn't find it, please tell me where it is ?) Thank you in advance. Santosh _________________________________________________________________ Your zone@MSN Spaces! http://www.msn.co.in/spaces Blogs, albums, music lists.
2004 Aug 06
1
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...gt; > I debugged the encoder and the stack trace is as follows: > > -> speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE, > > &m_SampleRate ); > > -> int speex_encoder_ctl(void *state, int request, void *ptr) > > return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); > > -> int sb_encoder_ctl(void *state, int request, void *ptr) > > ... > > case SPEEX_GET_SAMPLING_RATE: > > (*(int*)ptr)=st->sampling_rate; > > break; > > ... > > And st->sampling_rate is 2. > > > > I...
2004 Aug 06
0
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...p;m_SampleRate ); > > I debugged the encoder and the stack trace is as follows: > -> speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE, > &m_SampleRate ); > -> int speex_encoder_ctl(void *state, int request, void *ptr) > return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); > -> int sb_encoder_ctl(void *state, int request, void *ptr) > ... > case SPEEX_GET_SAMPLING_RATE: > (*(int*)ptr)=st->sampling_rate; > break; > ... > And st->sampling_rate is 2. > > I debugged some further and it seems: > sb_...
2007 Feb 09
1
speex in C# please help
...c struct SpeexMode { public void *mode; public IntPtr query; public char *modename; public int modeid; public int bitstream_version; public IntPtr enc_init; public IntPtr enc_destroy; public IntPtr enc; public IntPtr dec_init; public IntPtr dec_destroy; public IntPtr dec; public IntPtr enc_ctl; public IntPtr dec_ctl; } #endregion #region Exported Methods [DllImport(libpath)] public static extern void *speex_encoder_init(ref SpeexMode modein); [DllImport(libpath,EntryPoint="speex_lib_get_mode")] public static extern IntPtr speex_lib_get_mode (int modein); [DllImport(lib...
2008 Jul 30
1
Speex in VB .NET
...odeID As Integer Public bitstream_version As Integer Public enc_init As IntPtr Public enc_destroy As IntPtr Public enc As IntPtr Public dec_init As IntPtr Public dec_destroy As IntPtr Public dec As IntPtr Public enc_ctl As IntPtr Public dec_ctl As IntPtr End Structure #End Region #Region "Exported Methods" <DllImport(libpath)> _ Public Shared Sub speex_bits_init(ByRef bits As SpeexBits) End Sub <DllImport(libpath)> _ Public Shared Functio...
2007 Feb 13
1
Re: Speex-dev Digest, Vol 33, Issue 10
...ename; > > public int modeid; > > public int bitstream_version; > > public IntPtr enc_init; > > public IntPtr enc_destroy; > > public IntPtr enc; > > public IntPtr dec_init; > > public IntPtr dec_destroy; > > public IntPtr dec; > > public IntPtr enc_ctl; > > public IntPtr dec_ctl; > > } > > #endregion > > #region Exported Methods > > [DllImport(libpath)] > > public static extern void *speex_encoder_init(ref SpeexMode modein); > > [DllImport(libpath,EntryPoint="speex_lib_get_mode")] > > publ...
2004 Aug 06
5
Memory leak in denoiser + a few questions
Hello The st->zeta pointer isn't freed in the speex_preprocess_state_destroy() function of the preprocess.c file (alloced in line 167). It's in Speex 1.1.4 by the way. I'm trying to make the denoiser work with my application and has got reasonable noise reduction after applying the denoiser. I, however, haven't been able to find any information of what the purpose of
2004 Aug 06
2
[PATCH] Make SSE Run Time option. Add Win32 SSE code
...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_mmx_sse = *((int*)ptr); + return 0; + } + else + return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); } int speex_decoder_ctl(void *state, i...
2008 Mar 29
0
GCC/ELF Visibility patch
...int speex_decode_int(void *state, SpeexBits *bits, spx_int16_t *out) { int i; spx_int32_t N; @@ -177,12 +177,12 @@ -int speex_encoder_ctl(void *state, int request, void *ptr) +EXPORT int speex_encoder_ctl(void *state, int request, void *ptr) { return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); } -int speex_decoder_ctl(void *state, int request, void *ptr) +EXPORT int speex_decoder_ctl(void *state, int request, void *ptr) { return (*((SpeexMode**)state))->dec_ctl(state, request, ptr); } @@ -215,7 +215,7 @@ -int speex_lib_ctl(int request, void *ptr) +...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...int speex_decode_int(void *state, SpeexBits *bits, spx_int16_t *out) { int i; spx_int32_t N; @@ -177,12 +177,12 @@ -int speex_encoder_ctl(void *state, int request, void *ptr) +EXPORT int speex_encoder_ctl(void *state, int request, void *ptr) { return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); } -int speex_decoder_ctl(void *state, int request, void *ptr) +EXPORT int speex_decoder_ctl(void *state, int request, void *ptr) { return (*((SpeexMode**)state))->dec_ctl(state, request, ptr); } @@ -215,7 +215,7 @@ -int speex_lib_ctl(int request, void *ptr) +...