Crackling sound in Windows 10 64-bit

Discussions related to using VirtualBox on Linux hosts.

Re: Crackling sound in Windows 10 64-bit

Postby CarbonPepper » 23. Jan 2019, 15:26

AirKetchup wrote:4. set the number of cpus to 3 or more


Confirmed! Thank you!

Running Ubuntu 18.04, I've had this problem with a few Windows 10 VMs for over a year (on 16.04 hosts as well).
Sound was running fine on Windows 10 VM, using vanilla install with Pulseaudio sound, but after a windows update the sound became choppy. Another separate win 10 VM was fine, and duplicating settings from one to the other made no difference. I held back on letting the second VM do a windows update, but did eventually and then it got the problem too.
Even a fresh windows 10 build from latest iso had the same problem. I was Baffled. I tried the AC97 route, but the driver install always crashed out.

Nothing made any difference whatsoever. Until I just tried this.

SOLVED for me:
Without making any other changes to host or VM, changing VM from 2 cores to 4 cores (on a 16 core host) instantly made Pulseaudio sound work perfectly.


:D
CarbonPepper
 
Posts: 2
Joined: 29. Sep 2014, 21:10

Re: Crackling sound in Windows 10 64-bit

Postby mpack » 23. Jan 2019, 15:45

I suspect you just exchanged one (cosmetic) problem for a genuine long term problem. Probably you have a 4 core host CPU. You just assigned all four cores to the VM. What effect do you think that could have on the host, which now has 0 CPU cores for its exclusive use? How successfully or smoothly can the VirtualBox host process (and the rest of the host OS) run with 0 cores?
mpack
Site Moderator
 
Posts: 29017
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Crackling sound in Windows 10 64-bit

Postby CarbonPepper » 23. Jan 2019, 18:09

mpack wrote:Probably you have ....assumption, assumption, etc.

As I stated above your post, the host has 16 cores. It also has 32Gb ram. This scenario is wholly repeatable, and fits with rigour. Use the info as you wish.

I would prefer not to consume so many resources, but there's only so much waiting one can take.
CarbonPepper
 
Posts: 2
Joined: 29. Sep 2014, 21:10

Re: Crackling sound in Windows 10 64-bit

Postby mpack » 23. Jan 2019, 19:16

CarbonPepper wrote:As I stated above your post, the host has 16 cores.

Ah, so you did. A couple of words missed in your final sentence. Sorry about that. However most people reading your post will have 2 or 4 cores and my comment was always for their benefit.

CarbonPepper wrote:I would prefer not to consume so many resources, but there's only so much waiting one can take.

My own solutions are simpler: I turn off audio in the VM, or I live with the crackling. To me it is obvious that our ears are sensitive to the slightest distortion in audio, and there is no way a VM can guarantee to have the resources needed to sustain any data rate glitch free out of the guest and into the host sound card, not when the data is having to travel via some virtual chipset. If it was a paravirtualized audio then things might be different.
mpack
Site Moderator
 
Posts: 29017
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Crackling sound in Windows 10 64-bit

Postby ractar28 » 23. Jan 2019, 23:17

I have run into this issue and the fix is annoyingly simple. Your issue may not be the same as mine, but... on the guest system, go into control panel, sound (or click the magnifying glass and type sound). Highlight "speakers" and click "configure" . Change audio channel to "stereo". Click test and see if this fixes the issue. If not, try one of the other settings. Then next, next, finish.
ractar28
 
Posts: 1
Joined: 23. Jan 2019, 23:13

Re: Crackling sound in Windows 10 64-bit

Postby mpack » 24. Jan 2019, 10:02

Surely that fix (which has been the standard for years) has been mentioned already in this thread? In any case yes, if you reduce the data requirement then you reduce the chance of data streaming glitches. Getting 5.1 audio to work in VirtualBox has always been dicey. 2 channels is easier.
mpack
Site Moderator
 
Posts: 29017
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Crackling sound in Windows 10 64-bit

Postby brazuser » 20. Apr 2019, 10:33

Hello friends.

I am a Brazilian user and I know little English. Therefore excuse any mistake in writing; I'm using Google translator.

There are times my virtual machines have been sizzling in the audio, sounding the sound, also the report of all here.

I read all the pages until this my post. I followed all of the tutorials and instructions quoted by my friends, installed the AC97 audio they requested, moved the settings of the VMs and the host OS (W7 64bits) to make them equivalent in audio options, processor cores, video memory, as administrator, etc., but without any success.

My virtual machines are made up of Linux Ubuntu 18 64bit, Windows 7 32 and 64bit, Windows 10 64bit.
My current Virtualbox is 5.2.28r130011.

What worked for me was to move the directory (folder) from the virtual machine to an SSD. That simple.
It seems there is an incompatibility of some driver or files that bridges (communication) between the host and the virtual system. This causes a delay in audios and videos causing distortion and tearing.

Earlier, in addition to the perforated audio, the video also contained Tearing (equal to the game's screen slots). All virtual machines were installed on HDD.

After moving the machines to an SSD (SSD PLUS 240GB SANDISK 2.5 "SATA III) the problem on all VMs was remedied.
I did all the tests using YouTube audio and the system itself, streaming online radios, used the videos in Full HD, zoomed in to the entire screen size and everything went smoothly, without gagging.

Follow the same post in Portuguese so that Brazilian friends can also find this help.

That's all. Thankful!

---------

Olá amigos.

Sou usuário brasileiro e pouco sei de inglês. Portanto desculpem qualquer erro na escrita; estou utilizando o Google tradutor.

Há tempos minhas máquinas virtuais vem apresentando chiado no áudio, picotando o som, igualmente o relato de todos aqui.

Li todas as páginas até este meu post. Segui todos os tutoriais e instruções citadas pelos amigos, instalei o áudio AC97 que pediram, mexi nas configurações das VMs e no SO hospedeiro (W7 64bits) a fim de que ficassem equivalentes nas opções de áudio, núcleos de processador, memória de vídeo, coloquei como administrador, etc., porém sem sucesso algum.

Minhas máquinas virtuais são compostas de Linux Ubuntu 18 64bits, Windows 7 32 e 64 bits, Windows 10 64 bits.
Meu atual Virtualbox é 5.2.28r130011.

O que resolveu para mim foi mover o diretório (pasta) da máquina virtual para um SSD. Simples assim.
Ao que parece há uma incompatibilidade de algum driver ou arquivos que faz a ponte (comunicação) entre o sistema principal e o virtual. Isto causa um atraso em áudios e vídeos causando distorções e Tearing.

Antes, além do áudio picotado, o vídeo também continha Tearing (igual aos rasgos de tela dos jogos). Todas as máquinas virtuais eram instaladas em HDD.

Após mover as máquinas para um SSD (SSD PLUS 240GB SANDISK 2.5" SATA III) o problema em todas as VMs foi sanado.
Fiz todos os testes utilizando áudio do YouTube e do próprio sistema, streaming de rádios online, utilizei os vídeos em Full HD, ampliei para o tamanho da tela toda e tudo transcorreu normalmente, sem engasgos.

Segue o mesmo post em português para que os amigos brasileiros também possam encontrar esta ajuda.

Foi só isto. Grato!
brazuser
 
Posts: 2
Joined: 20. Apr 2019, 10:04

Re: Crackling sound in Windows 10 64-bit

Postby mpack » 20. Apr 2019, 13:18

brazuser wrote:What worked for me was to move the directory (folder) from the virtual machine to an SSD. That simple.
It seems there is an incompatibility of some driver or files that bridges (communication) between the host and the virtual system. This causes a delay in audios and videos causing distortion and tearing.

Not really, I suspect. By moving the VM onto faster media you reduced the media I/O overhead, allowing more I/O time for transporting audio data. This would only work if your VM was spending a lot of time accessing the disk, otherwise it would free up nothing.
mpack
Site Moderator
 
Posts: 29017
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Crackling sound in Windows 10 64-bit

Postby brazuser » 20. Apr 2019, 17:32

Right.

Well, that's what worked for me. Who knows, help someone.

I've also used Virtualbox for a long time and before that it did not happen, nor in HDDs. I've always used it on HDDs.
It was after performing one of the (old) updates that this happened and it was never the same again.

Thank you!
Last edited by socratis on 20. Apr 2019, 21:58, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
brazuser
 
Posts: 2
Joined: 20. Apr 2019, 10:04

Re: Crackling sound in Windows 10 64-bit

Postby mpack » 21. Apr 2019, 10:31

brazuser wrote:I've also used Virtualbox for a long time and before that it did not happen, nor in HDDs. I've always used it on HDDs.
It was after performing one of the (old) updates that this happened and it was never the same again.

That is in the nature of the problem. The difference between barely enough bandwidth (clean audio) and not quite enough (crackly audio) will be very small. Almost anything can make the difference.
mpack
Site Moderator
 
Posts: 29017
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Previous

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 20 guests