Audio interrupts 3 to 4 times after unpausing video (Linux Mint)
Updated to latest Linux Mint (Linux Mint 21 x86_64) on a Dell Latitude 5591. After this, with any video file, when pausing then unpausing after a few seconds (10+), the playback continues, but there are 1s pauses in the audio in the first seconds, about 4 gaps. It's around 2s sound, 2s gap and so on.
Tried with integrated speakers and with headphones, same result. This didn't happen before the Linux update.
Figured it was a Linux sound change, that it might turn the sound off to save power, but I cannot reproduce with its other player, Celluloid.
When another sound is in the background (very low volume brown noise on Youtube) this does not reproduce.
This reproduces with any video, from what I saw, no matter the codec or video size.
VLC Version: 3.0.16 Vetinari
Played a video file, created a log file with level Debug, ran a tail -f command on it and this is the output for the few seconds after unpausing:
main debug: inserting 21135 zeroes
main warning: playback too late (61571): up-sampling
main debug: toggling resume
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
main debug: toggling resume
dbus_screensaver debug: got cookie 26282680
main debug: auto hiding mouse cursor
pulse debug: suspended
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
main debug: toggling pause
main debug: toggling pause
dbus debug: Getting property CanSeek
dbus debug: Getting property Position
pulse debug: suspended
pulse debug: started
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
main debug: auto hiding mouse cursor
main warning: playback way too late (183856): flushing buffers
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1114203 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1113953 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1113665 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1113405 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1113167 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1112923 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1112682 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1112242 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1111833 us)
pulse debug: deferring start (717256 us)
pulse debug: deferring start (717176 us)
pulse debug: deferring start (717108 us)
pulse debug: deferring start (717021 us)
pulse debug: deferring start (716967 us)
pulse debug: deferring start (716913 us)
pulse debug: deferring start (716854 us)
pulse debug: deferring start (716792 us)
pulse debug: deferring start (716740 us)
pulse debug: deferring start (716677 us)
pulse debug: deferring start (716621 us)
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
pulse debug: deferring start (706142 us)
pulse debug: deferring start (685431 us)
pulse debug: deferring start (644617 us)
pulse debug: deferring start (563804 us)
pulse debug: deferring start (470347 us)
pulse debug: deferring start (438283 us)
pulse debug: deferring start (406311 us)
pulse debug: deferring start (374366 us)
pulse debug: deferring start (342423 us)
pulse debug: deferring start (310481 us)
pulse debug: deferring start (278542 us)
pulse debug: deferring start (246598 us)
pulse debug: deferring start (149052 us)
pulse debug: starting deferred
pulse debug: started
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
main warning: playback way too early (-602741): playing silence
main debug: inserting 19287 zeroes
main warning: playback too late (68317): up-sampling
main warning: timing screwed (drift: 137377 us): stopping resampling
main warning: playback too late (137323): up-sampling
main warning: playback way too late (183600): flushing buffers
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1125241 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1124959 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1124768 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1124600 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1123853 us)
vlcpulse debug: write index corrupt
pulse debug: cannot synchronize start
pulse debug: deferring start (1123637 us)
pulse debug: deferring start (733927 us)
pulse debug: deferring start (733881 us)
pulse debug: deferring start (733811 us)
pulse debug: deferring start (733755 us)
pulse debug: deferring start (733703 us)
pulse debug: deferring start (733646 us)
pulse debug: deferring start (733585 us)
pulse debug: deferring start (733376 us)
pulse debug: deferring start (701380 us)
pulse debug: deferring start (669407 us)
pulse debug: deferring start (637536 us)
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
pulse debug: deferring start (627617 us)
pulse debug: deferring start (606793 us)
pulse debug: deferring start (565259 us)
pulse debug: deferring start (485417 us)
pulse debug: deferring start (390549 us)
pulse debug: deferring start (358510 us)
pulse debug: deferring start (326586 us)
pulse debug: deferring start (294690 us)
pulse debug: deferring start (262796 us)
pulse debug: deferring start (230905 us)
pulse debug: deferring start (198257 us)
pulse debug: deferring start (102804 us)
pulse debug: starting deferred
pulse debug: started
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
main warning: playback way too early (-659275): playing silence
main debug: inserting 21096 zeroes
main warning: playback too late (60246): up-sampling
main debug: auto hiding mouse cursor
dbus debug: Getting property Position
main debug: auto hiding mouse cursor
main debug: resampling stopped (drift: -19061 us)
main debug: auto hiding mouse cursor
main debug: toggling resume
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
main debug: toggling resume
dbus_screensaver debug: got cookie 831774239
pulse debug: suspended
pulse debug: changing sink 1: alsa_output.pci-0000_00_1f.3.analog-stereo (Built-in Audio Analog Stereo)
main debug: auto hiding mouse cursor