Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 52:05:10 |
Calls: | 583 |
Files: | 1,139 |
Messages: | 111,529 |
I just discovered that I can't play a music cd on my Slackware 15.0
install.
enoch% mplayer -cdrom-device /dev/cdrom cdda://1
plays but stops evey ca. 15 seconds to say
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
I just discovered that I can't play a music cd on my Slackware 15.0
install.
enoch% mplayer -cdrom-device /dev/cdrom cdda://1
plays but stops evey ca. 15 seconds to say
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
On 2025-08-02, Mike Spencer <mds@bogus.nodomain.nowhere> wrote:
I just discovered that I can't play a music cd on my Slackware 15.0
install.
enoch% mplayer -cdrom-device /dev/cdrom cdda://1
plays but stops evey ca. 15 seconds to say
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
Your mplayer example works for me on Slackware64 15.0.
Does the output of `groups` include audio and cdrom?
Otherwise, i'd probably resort to `strace`
Best regards,--
-Ben
At about the point of failure, strace says:
munmap(0xae24a000, 2826240) = 0
mmap2(NULL, 2826240, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xae24a000
ioctl(3, CDROM_SEND_PACKET, 0xbfb67244) = 0
[repeated 47 times]
write(2, "\n", 1) = 1
write(2, "[AO_ALSA] Write error: Broken pi"..., 35[AO_ALSA] Write
error: Broken pipe) = 35
write(1, "[AO_ALSA] Trying to reset soundc"..., 37[AO_ALSA] Trying
to reset soundcard.
) = 37
so I'm no further ahead 'cause that was reported on the invoking
console.
It runs, prints
cdp : audio CD player by saby@balu.sch.bme.hu
Playing tracks 1-10...
(so it's read from the CD) but does nothing else.
write(1, "cdp : audio CD player by saby@ba"..., 46cdp : audio CD
player by saby@balu.sch.bme.hu
) = 46
openat(AT_FDCWD, "/dev/cdrom", O_RDONLY) = 3
ioctl(3, CDROMREADTOCHDR, 0x8049d2c) = 0
write(1, "Playing tracks 1-10...\n", 23Playing tracks 1-10...
) = 23
ioctl(3, CDROMPLAYTRKIND, 0x8049d3c) = 0
close(3) = 0
exit_group(0) = ?
+++ exited with 0 +++
Does that tell you anything?
Mike Spencer <mds@bogus.nodomain.nowhere> writes:
I just discovered that I can't play a music cd on my Slackware 15.0
install.
enoch% mplayer -cdrom-device /dev/cdrom cdda://1
plays but stops evey ca. 15 seconds to say
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
Something's up. It happens here too on Current.
mplayer cdda:////dev/sr0
MPlayer 20250330-14.2.0 (C) 2000-2025 MPlayer Team
Playing cdda:////dev/sr0.
Found audio CD with 30 tracks.
rawaudio file format detected.
Track 1 ========================================================================== Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 15.5 (15.4) of 4360.8 ( 1:12:40.7) 0.0%
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A: 31.5 (31.4) of 4360.8 ( 1:12:40.7) 10.2%
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A: 33.3 (33.3) of 4360.8 ( 1:12:40.7) 19.2%
Using VLC (Media -> Open Disc, CD) I don't get that message but it seems
to stutter now and then. I can't tell if it's the system or the
recording (it's The Germs - the recording is choppy and rough as-is). I
don't have any other physical CDs left at this time.
It might be a good idea to take this to LQ (if you have an account) so
the rest of the Slackware crew can look at it.
I don't understand the sound setup on Slack 15.
rc.alsa and rc.pulseaudio in /etc/rc.d are both 644. rc.pulseaudio says
# Start/stop/restart PulseAudio in system mode.
# In this mode, a single system instance of PulseAudio will be
shared by # multiple local users.
#
# Please note: this is not generally the best way to use
PulseAudio!
# Normally pulseaudio will start automatically as-needed with an
instance # per audio user.
How does that work? pgrep shows a pulseaudio process running even when mplayer isn't playing. Where is the running process started?