Displaying 6 results from an estimated 6 matches for "speex_resampler_reset_mem".
2010 Nov 10
0
bug fix for speex_resampler_reset_mem?
...fileName, &rate,
&num_samples, &num_channels);
SpeexResamplerState *state = speex_resampler_init_frac(num_channels,
in_rate, out_rate, in_rate, out_rate, quality, &error);
speex_resampler_skip_zeros(state);
speex_resampler_process_int(state, 0, input_data, ...)
write_waveform(...)
speex_resampler_reset_mem(m_resampler_state);
speex_resampler_skip_zeros(m_resampler_state);
speex_resampler_process_int(state, 0, input_data, ...)
write_waveform(...)
speex_resampler_destroy(state);
When I run it this way, my two output waveforms are not identical on a
binary basis.
Changing speex_resampler_reset_mem()...
2007 Dec 11
1
Questions about the resampler
...Can a resampler state be used to process frames belonging to
several audio streams? I would guess that there is information about
the audio streams stored in the state so the answer is no, but it
would be good to have some confirmation.
2. What is the best way to reset a resampler state?
speex_resampler_reset_mem appears to do it, but it is not documented
anywhere so again, it would be good to have some confirmation. I
guess another way would be to simply destroy the state and create a
new one.
Thanks
Mihai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7...
2019 Nov 06
0
【SPEEX】 use speex resample make noise
...g for other reasons).
Jean-Marc
On 11/6/19 1:56 AM, zhouyuchen at iauto.com wrote:
> Hello,
> I printed the log, in/out len is not truncated, which means that the
> input and output are not truncated,
> but the sound quality is very bad, what would be the cause?
> I tried to call speex_resampler_reset_mem before each sample, but the
> effect is not as good as usual.
>
> int main()
> {
> int err;
> SpeexResamplerState *speex_resampler;
> speex_resampler = speex_resampler_init(1, 16000, 48000, 10, &err);
> FILE *fp = fopen("/data/zhou.wav", &...
2008 Mar 29
0
GCC/ELF Visibility patch
...t;num_rate >> 1)) / st->num_rate;
}
-int speex_resampler_skip_zeros(SpeexResamplerState *st)
+EXPORT int speex_resampler_skip_zeros(SpeexResamplerState *st)
{
spx_uint32_t i;
for (i=0;i<st->nb_channels;i++)
@@ -1151,7 +1151,7 @@
return RESAMPLER_ERR_SUCCESS;
}
-int speex_resampler_reset_mem(SpeexResamplerState *st)
+EXPORT int speex_resampler_reset_mem(SpeexResamplerState *st)
{
spx_uint32_t i;
for (i=0;i<st->nb_channels*(st->filt_len-1);i++)
@@ -1159,7 +1159,7 @@
return RESAMPLER_ERR_SUCCESS;
}
-const char *speex_resampler_strerror(int err)
+EXPORT const char...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...t;num_rate >> 1)) / st->num_rate;
}
-int speex_resampler_skip_zeros(SpeexResamplerState *st)
+EXPORT int speex_resampler_skip_zeros(SpeexResamplerState *st)
{
spx_uint32_t i;
for (i=0;i<st->nb_channels;i++)
@@ -1151,7 +1151,7 @@
return RESAMPLER_ERR_SUCCESS;
}
-int speex_resampler_reset_mem(SpeexResamplerState *st)
+EXPORT int speex_resampler_reset_mem(SpeexResamplerState *st)
{
spx_uint32_t i;
for (i=0;i<st->nb_channels*(st->filt_len-1);i++)
@@ -1159,7 +1159,7 @@
return RESAMPLER_ERR_SUCCESS;
}
-const char *speex_resampler_strerror(int err)
+EXPORT const char...
2008 May 03
0
Resampler, memory only variant
...et_output_latency)
+#define speex_resampler_set_buffer_size CAT_PREFIX(RANDOM_PREFIX,_resampler_set_buffer_size)
+#define speex_resampler_get_buffer_size CAT_PREFIX(RANDOM_PREFIX,_resampler_get_buffer_size)
#define speex_resampler_skip_zeros CAT_PREFIX(RANDOM_PREFIX,_resampler_skip_zeros)
#define speex_resampler_reset_mem CAT_PREFIX(RANDOM_PREFIX,_resampler_reset_mem)
#define speex_resampler_strerror CAT_PREFIX(RANDOM_PREFIX,_resampler_strerror)
@@ -312,6 +314,20 @@
*/
int speex_resampler_get_output_latency(SpeexResamplerState *st);
+/** Set the buffer size in samples. The resampler allocates a temporary buffe...