OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Discussions about using Linux guests in VirtualBox.
Post Reply
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by loukingjr »

Installed the 5.0.8 GAs in OpenSUSE 13.2. Audio plays back at the wrong pitch and tempo. Tried adding codec="AD1980" to the .vbox file. That disabled audio altogether.

Thoughts?

edit: workaround...
add:
options snd-intel8x0 ac97_clock=48000
options snd slots=snd-intel8x0
alias snd-card-0 snd-intel8x0
as a sound.conf file in /etc/modprobe.d

this was necessary before there was a codec="AD1980"
Attachments
VBox.log.zip
(26.15 KiB) Downloaded 6 times
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by michaln »

loukingjr wrote:Installed the 5.0.8 GAs in OpenSUSE 13.2. Audio plays back at the wrong pitch and tempo.
Does that have anything to do with the GAs?
Tried adding codec="AD1980" to the .vbox file. That disabled audio altogether.
It didn't... it exposed a bug in the AC'97 emulation which prevents anything from being heard as long as the guest plays audio at 48 kHz. As soon as the guest switches the output sampling rate, audio will be audible (even back at 48 kHz). The observed behavior is different in various Linux distributions because some stick to 48 kHz playback and some don't.

The reason why the AD1980 codec exposes this is that it skips the rate detection... which made things audible as a side effect, but often ended up with the wrong pitch. Yes, there's a lot of bugs in the audio area.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by loukingjr »

Okie doke. The reason I mentioned the GAs is because audio was working before I updated them.

As you say though, seems to be different for different Linux guests. So far audio "varies".
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by michaln »

loukingjr wrote:Okie doke. The reason I mentioned the GAs is because audio was working before I updated them.
With the STAC9700 codec (the not-AD1980 codec) there is an element of randomness. Rebooting the guest will trigger rate re-detection, it can sometimes work (right pitch) and sometimes not (pitch is off). There could easily be some indirect dependency on the guest configuration (what exactly runs when during the boot).
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by loukingjr »

I see. Well the workaround in my first post works.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by loukingjr »

FWIW, same problem with OpenSUSE Leap 42.1. Same fix: remove codec="AD1980" from the .vbox file. add the sound.conf file mentioned above to /modprobe.d
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by michaln »

This should be fixed in 5.0.10.

And just to be clear, removing the AD1980 codec setting doesn't fix wrong pitch/tempo, it will at best cause that.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by loukingjr »

Indeed. 5.0.10 seems to have fixed it. Thanks michaln.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by michaln »

loukingjr wrote:Indeed. 5.0.10 seems to have fixed it. Thanks michaln.
Thanks for the report. What Linux distro did you test with BTW? (I'm asking because there are big differences between at least Ubuntu and RHEL/Fedora with regard to their audio subsystem.)
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: OpenSUSE 13.2 Audio Wrong Pitch/Tempo 5.0.8 GAs

Post by loukingjr »

So far, Ubuntu 16.04, Fedora 23, CentOS 7 and OpenSUSE 42.1 seem fine.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Post Reply