[Speex-dev] one more question about speex_bits_insert_terminator and speex_bits_write

Jean-Marc Valin jean-marc.valin at usherbrooke.ca
Sat Dec 9 11:19:35 PST 2006


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 at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev


More information about the Speex-dev mailing list