speexenc: Use speex intern silence detection
authorAlexey Fisher <bug-track@fisher-privat.net>
Fri, 8 Apr 2011 09:11:58 +0000 (11:11 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 8 Apr 2011 11:54:49 +0000 (13:54 +0200)
commit0016ceaa2b0c56d7522eb3c412768c9371fd23bd
tree607f6b1c893e2ee9ed09ef10ae9d1512f231e13a
parent547c97f59036030d8476f68b4725398c7545f8d3
speexenc: Use speex intern silence detection

Speex has build in silence detection. If speex_encode_int returns 0,
than there is silence and sample do not need to be transmitted.
This work only if vbr=1 and dtx=1 optionas are enabled.
So if we get 0, we add GAP flag to the sample.
ext/speex/gstspeexenc.c