Ashhar Farhan
2008-Aug-28 04:39 UTC
[Speex-dev] speex encode and speex_bits_write buffer size
how many calls can I make to speex_encode_int before calling speex_bits_write? Can I stuff 10 frames? - farhan
Jean-Marc Valin
2008-Aug-28 10:52 UTC
[Speex-dev] speex encode and speex_bits_write buffer size
Ashhar Farhan a ?crit :> how many calls can I make to speex_encode_int before calling > speex_bits_write? Can I stuff 10 frames?Yes. Even if you put more, it'll just auto-resize the buffer. For 10 frames, it won't even have to resize. Cheers, Jean-Marc
Ashhar Farhan
2008-Aug-28 10:57 UTC
[Speex-dev] speex encode and speex_bits_write buffer size
when i try putting more than 4 packets in the buffer, i get noise from the end packets. maybe it is my bad, but it is happening across symbian and pocket pc builds. i will test more and report. - farhan On Thu, Aug 28, 2008 at 4:22 PM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote:> Ashhar Farhan a ?crit : >> how many calls can I make to speex_encode_int before calling >> speex_bits_write? Can I stuff 10 frames? > > Yes. Even if you put more, it'll just auto-resize the buffer. For 10 > frames, it won't even have to resize. > > Cheers, > > Jean-Marc > _______________________________________________ > Speex-dev mailing list > Speex-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >