LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   How to configure audio in VirtualBox guest? (http://www.linuxquestions.org/questions/slackware-14/how-to-configure-audio-in-virtualbox-guest-4175494332/)

lionoceros 02-09-2014 10:04 AM

How to configure audio in VirtualBox guest?
 
I'm having some trouble getting alsa to work in Slackware64-14.1 in a VirtualBox VM. I'm running Slackware without X (though I do have the X series installed).

First, I made sure rc.alsa was executable. Then, after logging in as root, I ran alsamixer to unmute the channels. I tested the sound by running cat /dev/sda > /dev/dsp, but there was no sound.

I searched for some guides to set up sound in Slackware, but I'm not sure which guide to use. Are there official instructions I could use?

Here is the output of lsmod | grep snd (sorry the indentation didn't work correctly):

Code:

snd_intel8x0                28308        0
snd_ac97_codec                112023        1        snd_intel8x0
snd_pcm                                76009        2        snd_ac97_codec,snd_intel8x0
snd_page_alloc                7098        2        snd_intel8x0,snd_pcm
snd_timer                        18614        1        snd_pcm
snd                                        58630        4        snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm
soundcore                        5354        1        snd
ac97_bus                        1198        1        snd_ac97_codec

I have installed the A, AP, D, F, K, L, N, TCL, and X series. Perhaps I'm missing a dependency? Should I just go with a default full install next time?

lionoceros 02-09-2014 11:32 AM

Got it working! I read this part of the ArchWiki and set the channel volumes so dB gain = 0. Then, I ran the command speaker-test. It worked! For some reason the command cat /dev/sda > /dev/dsp doesn't work (which is what I used to use to test the sound), but that's probably not a big deal.


All times are GMT -5. The time now is 12:32 PM.