[Speex-dev] SpeexBits ...

Mark Schilling mark_schilling at gmx.de
Wed Nov 25 10:24:36 PST 2009


Hi Marian,

I took a brief look at RFC 5574 and as far as I understand, you can simply do it like this:

SpeexBits b;
speex_encode(state, some320bytePCM1, &b);
speex_encode(state, some320bytePCM2, &b);

After that, get the encoded data with speex_bits_write and put it in your packet.

Mark

-----Original Message-----
From: speex-dev-bounces at xiph.org [mailto:speex-dev-bounces at xiph.org] On Behalf Of Marian Kechlibar
Subject: Re: [Speex-dev] SpeexBits ...

Hello, is here anyone who could help me with that?

Best regards

Marian Kechlibar

Marian Kechlibar napsal(a):
> One more question:
>
> Let us imagine the following code with a mono Speex NB encoder:
>
> SpeexBits b1;
> SpeexBits b2;
> ... initialization...
> speex_encode(state, some320bytePCM1, &b1);
> speex_encode(state, some320bytePCM2, &b2);
>
> Now, I have a single frame in the structure b1 and a single frame in the
> structure b2. How do I "append" the frame from b1 to b2 using speex_bits
> (while keeping the RFC 5574 format for Speex frames?) Do I have to
> export b2 first?
>
> Best regards
>
> Marian Kechlibar
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
>   

_______________________________________________
Speex-dev mailing list
Speex-dev at xiph.org
http://lists.xiph.org/mailman/listinfo/speex-dev



-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


More information about the Speex-dev mailing list