The silence size/threshold settings are more generic than needed in practice.
To reinitialize any just-played part of the buffer with zeros, set the silence threshold to zero, and set the silence size to the boundary value (which you can read with snd_pcm_sw_params_get_boundary
).