This reverts commit 246b7873761390d30ed32b37419350f2c2e72572 in #133. This should fix BMO 1727598.
After applying this patch, the silence frames will only be appended when the resampler asking for more input frames than what we have and the device is switching or the stream is re-initializing. If the resampler asking for more input frames than what we have but the device is not switching or the stream is not re-initializing, now we count on cubeb resmapler's help.
This reverts commit 246b7873761390d30ed32b37419350f2c2e72572 in #133. This should fix BMO 1727598.
After applying this patch, the silence frames will only be appended when the resampler asking for more input frames than what we have and the device is switching or the stream is re-initializing. If the resampler asking for more input frames than what we have but the device is not switching or the stream is not re-initializing, now we count on cubeb resmapler's help.