b=912474 use speex_resampler_process_int on platforms where speex_resampler_process_float expects samples in the range +/-32767 r=ehsan a=akeybl

(transplanted from 840d3d8c39a0a8d4184c2e2cbb7fcfcc7c352f73)
(transplanted from c87b736b65faf310e872f06cb5cf83807403509d)

--HG--
extra : transplant_source : %C8%7Bske%FA%F3%10%E8r%F0l%B5%CF%83%80t%03P%9D
b=921675 use maximum instead of current delay for tail time because delay can increase faster than time passes r=ehsan a=akeybl

(transplanted from 3a8400387d03af8d227a6d83325a3688fba7daab)
(transplanted from 1405a08b51e23a55c91fb0284f1f436c12fb9f53)

--HG--
extra : transplant_source : %14%05%A0%8BQ%E2%3AU%C9%1F%B0%28O%1FCl%12%FB%9FS
b=910174 add DelayNode's tail-time reference as soon as the engine receives sound r=ehsan a=akeybl

This removes the dependence on AllInputsFinished() which didn't return true
for many input types.

The DelayProcessor is no longer continuously reset (bug 921457) and the
reference is now correctly added again when all inputs are finished and then
new inputs are connected.

(transplanted from cb856e6d57c1eeb387e3b57a5e4f95afc16f80cb)
(transplanted from 7dfe4a77553120545ccb6f59a1f0e7c73f14d8ce)

--HG--
extra : transplant_source : %7D%FEJwU1%20T%5C%CBoY%A1%F0%E7%C7%3F%14%D8%CE