yaseminyilmaz
2006-Dec-09 02:51 UTC
[Speex-dev] one more question about speex_bits_insert_terminator and speex_bits_write
Hi everybody, I have been examining on how I can use speex completely so I have one more question. I looked at examples and source code and it goes on. speex_bits_insert_terminator is called in speex_bits_write function. Shall I call this method one more time anywhere? Because in speexenc project, firstly speex_bits_insert_terminator is called then speex_bits_write is called when we assume that nframe=1. But according to manuel, only speex_bits_write function is called. What does speex_bits_insert_terminator do completely and where shall I use it? Is "only calling speex_bits_insert_terminator in speex_bits_write" sufficient? Thanks in advance Sincerely Yasemin -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20061209/94bb2666/attachment.html
Jean-Marc Valin
2006-Dec-09 11:23 UTC
[Speex-dev] one more question about speex_bits_insert_terminator and speex_bits_write
speex_bits_terminator() is called by speex_bits_write(), so in most cases, it's not necessary to call it explicitly. Jean-Marc yaseminyilmaz a ?crit :> Hi everybody, > > I have been examining on how I can use speex completely so I have one more > question. I looked at examples and source code and it goes on. > speex_bits_insert_terminator is called in speex_bits_write function. Shall I > call this method one more time anywhere? Because in speexenc project, > firstly speex_bits_insert_terminator is called then speex_bits_write is > called when we assume that nframe=1. But according to manuel, only > speex_bits_write function is called. What does speex_bits_insert_terminator > do completely and where shall I use it? Is "only calling > speex_bits_insert_terminator in speex_bits_write" sufficient? > > Thanks in advance > > Sincerely > > Yasemin > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev