Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Oss/Alsa/Pulseaudio: never-ending wars (VBox)
Date: Wed, 19 Feb 2020 18:49:23
Message-Id: 1833700.usQuhbGJ8B@lenovo.localdomain
In Reply to: Re: [gentoo-user] Oss/Alsa/Pulseaudio: never-ending wars (VBox) by n952162
1 On Wednesday, 19 February 2020 17:32:46 GMT n952162 wrote:
2 > On 2020-02-19 15:37, n952162 wrote:
3 > > On 2020-02-19 10:48, Adam Carter wrote:
4 > >> On Wed, Feb 19, 2020 at 8:06 PM <n952162@×××.de
5 > >>
6 > >> <mailto:n952162@×××.de>> wrote:
7 > >> I can't play audio from my VBox. The host system only plays
8 > >> audio through the second sound card (1). The VBox offers me OSS
9 > >> or the null driver. The Alsa and pulseaudio pages say OSS is
10 > >> "deprecated". Is Oracle out of the picture? I can't find the
11 > >> straight dope.
12 > >>
13 > >> Do I have to convince VBox to talk to a different sound card?
14 > >>
15 > >> Which vbox version and what are your use flags?
16 > >>
17 > >> FWIW, for me;
18 > >> app-emulation/virtualbox-6.1.2::gentoo was built with the following:
19 > >> USE="alsa opengl opus pam pulseaudio qt5 sdk udev -debug -doc -dtrace
20 > >> -headless -java -libressl -lvm -pax_kernel -python -vboxwebsrv -vnc"
21 > >> ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_7
22 > >> -python3_8" PYTHON_TARGETS="python2_7 python3_6 -python3_7 -python3_8"
23 > >>
24 > >> So i can use ALSA or pulse.
25 > >
26 > > Okay, that's a good tip. I'll try those use flags - I have none set.
27 > >
28 > > I'm at virtualbox-5.2.32, which I just emerged in the last couple of
29 > > days, using this profile:
30 > >
31 > > [16] default/linux/amd64/17.1 (stable) *
32 >
33 > I added alsa and pulseaudio and it didn't help. Then I noticed that
34 > opus has something to do with the soundcard so I emerged that with -vU
35 > but nothing needed to be done.
36 >
37 > It seems like VBox is interfacing directly with "the" sound card and
38 > even working correctly (e.g. aplay some-file takes about the right
39 > amount of time until it ends error-free), but unfortunately, I have 2
40 > sound cards and the first doesn't work.
41 >
42 > Perhaps I could map the one to the other soundcard using .asoundrc?
43 > Unfortunately, I can find no grammar for that file.
44
45 Two outputs, one HDMI, the other analogue on this laptop:
46
47 $ aplay -l
48 **** List of PLAYBACK Hardware Devices ****
49 card 0: HDMI [HDA ATI HDMI], device 3: Generic Digital [Generic Digital]
50 Subdevices: 1/1
51 Subdevice #0: subdevice #0
52 card 1: Generic [HD-Audio Generic], device 0: CX20757 Analog [CX20757 Analog]
53 Subdevices: 1/1
54 Subdevice #0: subdevice #0
55
56 This syntax swaps them over, so I can get sound out of the speakers:
57
58 $ cat /etc/asound.conf
59 #pcm_slave.slave_rate48000Hz {
60 # pcm "hw:1,0"
61 ## This is the rate the sound card does.
62 ## Any random input rates are resampled to this.
63 # rate 48000
64 #}
65 #pcm.rate44100Hz {
66 # type plug
67 # slave slave_rate48000Hz
68 #}
69
70 defaults.pcm.card 1
71 defaults.pcm.device 0
72 defaults.ctl.card 1
73
74 --
75 Regards,
76
77 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Oss/Alsa/Pulseaudio: never-ending wars (VBox) n952162 <n952162@×××.de>