LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   VirtualBox (windowsxp guest) sound problem (https://www.linuxquestions.org/questions/slackware-14/virtualbox-windowsxp-guest-sound-problem-794681/)

Kristian2 03-11-2010 06:49 AM

VirtualBox (windowsxp guest) sound problem
 
For those that use Virtualbox on their slackware host and have a windows (xp) guest running.
I have tried various settings for sound (Alsa, PulseAudio), the AC97 drivers are installed in the Windows xp guest os, but there is no sound and there is an unknown audio device (in the windows device manager). If I remove the AC97 drivers and use the soundblaster16 drivers in the Vbox settings there is no unknown sound device, but there's still no sound. Any ideas why I can't get sound working?

brianL 03-11-2010 06:58 AM

Try the OSS setting. It works for me.

rmjohnso 03-11-2010 08:29 AM

See this thread where this same issue is discussed.

http://www.linuxquestions.org/questi...sound.-754662/

No one answered my question about how recompiling SDL would fix the issue, and it didn't fix it for me. I just upgraded my system to the latest -current64, and sound now works when using ALSA. You can also try compiling pulseaudio and using it.

Cheesesteak 03-11-2010 08:47 AM

Here's my setup
 
My computer is using its on-motherboard HDA Intel audio, and I have sound working for guests in VirtualBox with PulseAudio. I have GSB 2.26 installed on my box, and I am using its PulseAudio packages (v0.9.15)... shouldn't matter whether you use GSB or roll your own packages from SBo. VirtualBox is PUEL for USB support, version 3.1.4.


my /etc/asound.conf
Code:

pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}

pcm.!default {
          type pulse
          }
        ctl.!default {
          type pulse
          }

I created a group/user as hinted at SlackBuilds.org
Code:

groupadd -g 216 pulse
useradd -u 216 -g pulse -d /var/lib/pulse  pulse

Open up the PulseAudio Preferences window
Code:

Click on the Simultaneous Output tab
Tick the box for "Add virtual output device for simultaneous output on all local sound cards."

Audio settings in VirtualBox:
Code:

Host Audio Driver: PulseAudio
Audio Controller: ICH AC97


My only real beef with PulseAudio at the moment is that it seems to lower you output levels... need to crank up the decibels.

Kristian2 03-11-2010 01:51 PM

Thanks for your help.
I hadn't installed PulseAudio, let's do that first:).
Prior to building I installed libtool and removed the previous version.
But after running the PulseAudio configure script, it is not able to find it while it is correctly installed in /usr/local/bin/libtool


checking for lt_dladvise_init in -lltdl... no
configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.2 or later installed.

What's wrong now?

if test "x$LIBLTDL" = "x"; then :
as_fn_error "Unable to find libltdl version 2. Makes sure you have libtool 2.2 or later installed.
" "$LINENO" 5
fi

in the configure script.

LIBLTDL is somehow not defined

while
$ libtool --version
ltmain.sh (GNU libtool) 2.2.6b

rmjohnso 03-11-2010 02:53 PM

Quote:

Originally Posted by Kristian2 (Post 3894658)
Thanks for your help.
I hadn't installed PulseAudio, let's do that first:).
Prior to building I installed libtool and removed the previous version.
But after running the PulseAudio configure script, it is not able to find it while it is correctly installed in /usr/local/bin/libtool


checking for lt_dladvise_init in -lltdl... no
configure: error: Unable to find libltdl version 2. Makes sure you have libtool 2.2 or later installed.

What's wrong now?

if test "x$LIBLTDL" = "x"; then :
as_fn_error "Unable to find libltdl version 2. Makes sure you have libtool 2.2 or later installed.
" "$LINENO" 5
fi

in the configure script.

LIBLTDL is somehow not defined

while
$ libtool --version
ltmain.sh (GNU libtool) 2.2.6b

There is a bug between the SBo version of pulseaudio and the libtool installed in Slackware. Try using the latest version of pulseaudio.

You can also review my other thread on the proper setup and configuration of pulseaudio under -current64.

http://www.linuxquestions.org/questi...=1#post3882766

To Cheesesteak's comments above about modifying the pulseaudio preferences, I gave up on pulseaudio under Slackware because I don't use gnome, and many of the support tools for pulseaudio have gnome library dependencies.

Like I said in my other post, my recent upgrade to the latest version of -current seemed to fix my ALSA problems. Have you tried upgrading to -current?

Cheesesteak 03-11-2010 09:36 PM

I haven't had any luck using VirtualBox with a pure ALSA setup. On my host, I have no trouble concurrently playing an mp3 in Audacious, watching a video with audio on Youtube and getting sound effects through Pidgin. Should I be doing any of those, then choose to start a VBox guest, it complains that it can't access the specified audio device. If I'm not doing anything on the host when I fire up a VBox guest, it will have sound. Of course, the reverse then happens that I can't do anything on the host with audio until I shut the guest down.

Going a little further, I tried a few versions of VMware Workstation (6.5 and 7.0). On a stock Slackware64 13.0 setup, sound works between the host and guest(s) without any monkey-business. No Pulse, just pure ALSA. Aside from the painless audio, I don't have a compelling reason to use VMware over VirtualBox.

Kristian2 03-12-2010 01:36 AM

@rmjohnso

Well I removed the libtool from Slackware and replaced it with the 2.2 version, and I downloaded the latest sources of PulseAudio (0.9.21). That's is why I don't understand the error.
libtool is properly installed in /usr/local

I do not have the 64 bit Slackware version.

rmjohnso 03-12-2010 10:00 AM

Quote:

Originally Posted by Kristian2 (Post 3895374)
@rmjohnso

Well I removed the libtool from Slackware and replaced it with the 2.2 version, and I downloaded the latest sources of PulseAudio (0.9.21). That's is why I don't understand the error.
libtool is properly installed in /usr/local

I do not have the 64 bit Slackware version.

Have you tried reinstalling the Slackware version?

Kristian2 03-12-2010 10:47 AM

Reinstalling is not what I would like to do, I would rather wait for Slackware 14 or 15 for that, and honestly I don't see why that would solve the problem. There seems to be something the trouble with the configure script. I have to pinpoint the problem why the configuration doesn't see the newest libtool version. Change something in the script perhaps. Then I can install PulseAudio and see if that solves the sound problem.

rmjohnso 03-12-2010 04:55 PM

What I meant was to re-install the current version of the libtool Slackware package (not a full system re-install).

Kristian2 03-13-2010 03:46 AM

The version of Libtool distributed with Slackware is 1.5.26, while the latest PulseAudio requires 2.2 which is the Libtool version I replaced it with. I will have to see I can make some changes in the configure script to make it work.

rmjohnso 03-13-2010 11:40 AM

libtool-2.2.6b is a part of -current. You might try that.

Kristian2 03-13-2010 04:19 PM

PulseAudio is now installed, I forgot to remove the old libltdl files in /usr/lib which were still used instead of the newest ones in /usr/local/lib, oh well.
I made the changes in /etc/asound.conf, but no sound yet. Will continue tomorrow.


All times are GMT -5. The time now is 04:37 AM.