Gentoo Archives: gentoo-user

From: Meino.Cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Mysterious library access...
Date: Sun, 21 Jun 2015 09:04:28
Message-Id: 20150621090411.GD4308@solfire
In Reply to: Re: [gentoo-user] Mysterious library access... by bitlord
1 bitlord <bitlord0xff@×××××.com> [15-06-21 10:48]:
2 > On Sun, 21 Jun 2015 10:27:33 +0200
3 > Meino.Cramer@×××.de wrote:
4 >
5 > > Hi,
6 > >
7 > > After trying to play a flac-file with mpv I got this error message:
8 > > Playing: Track_01.flac
9 > > (+) Audio --aid=1 (flac)
10 > > File tags:
11 > > Artist: Unknown
12 > > Album: Unknown Disc
13 > > Genre: Alternative
14 > > Title: Track 01
15 > > Track: 1
16 > > ALSA
17 > > lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open)
18 > > unable to open slave [ao/alsa] Playback open error: Device or
19 > > resource busy connect(2) call to /dev/shm/jack-0/default/jack_0
20 > > failed (err=No such file or directory) attempt to connect to server
21 > > failed [ao/jack] cannot open server ALSA
22 > > lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open)
23 > > unable to open slave Could not open/initialize audio device -> no
24 > > sound. Audio: no audio : 00:00:00 / 00:05:56 (0%)
25 > >
26 > > I reinstalled alsa-lib and mpv but the problem remains:
27 > > Why does alsa tries to load a library which is meant to be found
28 > > under /var/tmp/portage?
29 > >
30 >
31 > That probably means some debug message from alsa-lib where for example
32 > pcm_dmix.c:1024 is a source file 'pcm_dmix.c' and :1024 is a line
33 > where the "falling" function call is.
34 > It probably tries to open '/dev/shm/jack-0/default/jack_0'
35 > maybe your alsa configuration is a problem, or missing some kernel
36 > functionallity (just guessing). Using 'jack-audio-connection-kit'?
37 >
38 >
39
40 Hi,
41
42 Ah!Oh! Yes...I see...sorry for my blurred view to this problem.
43
44 Yes, I am trying to use jackd with mpv, whcih leads to this
45 error.
46
47 My setup is:
48 jackd,
49 alsa
50 mpv
51
52 After stopping jackd I can play the track with mpv...so alsa
53 as such seem to be well and up running.
54
55 Enabling jackd again shows this (this time I will post
56 the whole thing ... so nothing is censored by me... ;)
57
58 File tags:
59 Artist: Unknown
60 Album: Unknown Disc
61 Genre: Alternative
62 Title: Track 02
63 Track: 2
64 ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
65 [ao/alsa] Playback open error: Device or resource busy
66 AO: [jack] 48000Hz stereo 2ch floatp
67 A: 00:00:09 / 00:11:54 (1%)
68
69 BUT it plays this time...
70 Do I have kill jackd, play something with alsa, restart jackd and it
71 "works" ... ?
72 Sounds silly...but at least "it sounds".
73 What's going on here?
74
75 Best regards,
76 Meino