I used to have that YouTube sometimes would only play about 0.2 seconds and then stop. I then rebooted my machine a couple of times, sometimes changed the audio controller, and then it worked again for some time.
I recently messed something up and installed Linux Mint again on the host. Now I have this problem mostly, if I change the settings the sound will work at 1 of the 20 tries. I also noticed that when I run play from the command line I get a lot of play WARN alsa: under-run messages.
I found (a site which I'm not allowed to post yet) which suggested to look for intel8x0_measure_ac97_clock messages in dmesg, which I found. I added options snd-intel8x0 ac97_clock=48000 at the end of /etc/modprobe.d/alsa-base.conf which removed the messages from dmesg, but did not solve the problem.
I played around with the settings.
- When I disable the sound controller I can play YoutTube videos fine, but have no sound
- When I change the sound controller to Soundblaster 16 I can play YoutTube videos fine, but have no sound
- Both ICH AC97 and Intel HD Audio give problems
- I tried switching the Host Audio Driver to PulseAudio and Alsa Audio driver, both give problems
- I tried enabling and disabling Audio Input, both give problems
- I tried switching the Motherboard Chipset to PIIX3 and ICH9, both give problems
- I tried disabling PAE/NX and Nested VT-x/AMD-V, which did not help
- I tried disabling Nested Paging, which did not help
- I tried to use Paravirtualization Interface Default and KVM, which did not help
- I tried upgrading the guest to Linux Mint 20, which did not help
- I tried adding options snd_hda_intel index=1,0 and options snd_hda_intel index=0 to /etc/modprobe.d/alsa-base.conf (as two tries, not at the same time), which did not help
- And lastly, I created a file /etc/asound.conf and added the lines below to it, this also did not help
Code: Select all
defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1
I installed VirtualBox from the official VirtualBox repo, not the one from Linux Mint. And the guest has the Guest Addons from the Devices menu of VirtualBox, so it is not installed using apt.