Displaying 13 results from an estimated 13 matches similar to: "Another newbie question on encoding"
2010 Apr 14
3
Decoded output buffer size
Il 14/04/2010 14:37, Randy Yates wrote:
>
> Usually a buffer is one frame of data, and a frame is 20 milliseconds.
> Since the sample rate is typically 8 kHz in narrowband mode, this
> corresponds to a buffer size of 160 samples.
Hi Randy, thanks for the reply.
So, suppose I encode an audio buffer (8000 kHz, MONO, float) of 640 PCM
frames.
In output I have 4 speex frame of 20 byte
2010 Apr 14
2
Decoded output buffer size
Hi,
in a VoIP application, the endpoint A send speex payload to B.
B doesn't know how A acquire audio, it only know that the channel is
narrowband so, how can B know the size of the output buffer to pass to
the speex_decode()?
Thanks,
Daniele.
2010 Apr 14
0
Decoded output buffer size
On 14 April 2010 23:50, Daniele Barzotti
<daniele.barzotti at eurocomtel.com> wrote:
> Il 14/04/2010 14:37, Randy Yates wrote:
>>
>> Usually a buffer is one frame of data, and a frame is 20 milliseconds.
>> Since the sample rate is typically 8 kHz in narrowband mode, this
>> corresponds to a buffer size of 160 samples.
>
> Hi Randy, thanks for the reply.
>
2010 Apr 15
2
Decoded output buffer size
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Il 15/04/2010 01:30, Conrad Parker wrote:
>
>> But how can I know the size of each speex frame into a multiframe payload?
>
> use speex_bit_read_from() just once on the packet, then call
> speex_decode() once for each frame.
>
> Conrad.
Thanks for the reply, Conrad.
What is not clear for me (and I didn't found it on the
2010 Jun 10
0
speex multi frame
Hi Alls
Sorry for my newbe question
I want to decode a speex multi frame stream
I got 38 bytes packets and make 800 bytes buffer
this is my simple code
CSpeexCodec::CSpeexCodec(void)
{
//
speex_bits_init(&m_speexBitsOut);
m_pSpeexEncStateOut = speex_encoder_init(&speex_nb_mode);
int nEhc=1;
int nSamplePerSec = SAMPLES_PER_SEC;
static int nQuality = 8;
2010 Apr 15
0
Decoded output buffer size
On 15 April 2010 17:55, Daniele Barzotti
<daniele.barzotti at eurocomtel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Il 15/04/2010 01:30, Conrad Parker wrote:
>>
>>> But how can I know the size of each speex frame into a multiframe payload?
>>
>> use speex_bit_read_from() just once on the packet, then call
>> speex_decode()
2005 Apr 11
2
[LLVMdev] JIT and array pointers
On Sun, 2005-04-10 at 19:47 -0500, Chris Lattner wrote:
> On Mon, 11 Apr 2005, Paul wrote:
> > I'm trying to pass an array pointer to my run-time generated module, and
> > after a long time of searching for the answer, the only thing I got was
> > a headache. Basically I have a few arrays (few megabytes which will
> > sometimes be accessed as 8 / 16 / 32 / 64 bit
2005 Apr 11
0
[LLVMdev] JIT and array pointers
On Mon, 11 Apr 2005, dummy1 at boxpl.com wrote:
>> There are many possible ways to do this, can you be a bit more specific
>> about what you're trying to do?
> Here is a basic example:
Ah, ok, I see what you're trying to do. Below is some *pseudo* code for
the basic idea:
> ============================================
> unsigned int buff[4096];
>
> int main
2019 Nov 06
0
【SPEEX】 use speex resample make noise
Look, how about you start from the testresample.c file? Oh, and you seem
to be reading 320 samples at a time and processing 640, so that can't be
good (and even beyond that your code is wrong 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
2009 Mar 18
1
sprintf("%d", integer(0)) aborts
In R's sprintf() if any of the arguments has length 0
the function aborts. E.g.,
> sprintf("%d", integer(0))
Error in sprintf("%d", integer(0)) : zero-length argument
> sprintf(character(), integer(0))
Error in sprintf(character(), integer(0)) :
'fmt' is not a non-empty character vector
This comes up in code like
x[nchar(x)==0] <-
2005 Apr 11
0
[LLVMdev] JIT and array pointers
On Mon, 11 Apr 2005, Paul wrote:
> I'm trying to pass an array pointer to my run-time generated module, and
> after a long time of searching for the answer, the only thing I got was
> a headache. Basically I have a few arrays (few megabytes which will
> sometimes be accessed as 8 / 16 / 32 / 64 bit binary / fp values), that
> will be modified by both the generated module, and my
2019 Nov 05
0
【SPEEX】 use speex resample make noise
Be aware that inlen is an in/out parameter. It tells you how many
samples the resampler read. That number can be smaller than what you
passed -- in which case it means you need to buffer them and give them
to the resampler again in the next call.
Jean-Marc
On 11/5/19 8:27 AM, zhouyuchen at iauto.com wrote:
> Hello,
> I have encountered some problems. I want to use speex to convert the
2005 Apr 10
2
[LLVMdev] JIT and array pointers
I'm trying to pass an array pointer to my run-time generated module, and
after a long time of searching for the answer, the only thing I got was
a headache. Basically I have a few arrays (few megabytes which will
sometimes be accessed as 8 / 16 / 32 / 64 bit binary / fp values), that
will be modified by both the generated module, and my main c program, so
I would like to put those into global