mozilla / cubeb-coreaudio-rs

The audio backend of Firefox on Mac OS X.
ISC License
25 stars 10 forks source link

BMO 1727598 - Fix audio cut #135

Closed ChunMinChang closed 3 years ago

ChunMinChang commented 3 years ago

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.