Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #215293
| From | Reco <recoverym4n@enotuniq.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Persistent names for audio devices. |
| Date | 2019-10-20 20:00 +0200 |
| Message-ID | <yTnEJ-7FN-9@gated-at.bofh.it> (permalink) |
| References | <yTl9T-6eF-1@gated-at.bofh.it> <yTljz-6if-1@gated-at.bofh.it> <yTnbH-7uY-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi. On Sun, Oct 20, 2019 at 10:28:37AM -0700, peter@easthope.ca wrote: > > AUDIODEV=dmix:CARD=PCH,DEV=0 play MY/m85.WAV > > Good. > > Meanwhile, > peter@joule:/home/peter$ aplay -L | grep dmix:CARD=L > dmix:CARD=Live,DEV=0 > dmix:CARD=Live,DEV=1 > dmix:CARD=Live,DEV=2 So, does it work? > Try the second DEV, > AUDIODEV=dmix:CARD=Set,DEV=1 play MY/m85.WAV > ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave > play FAIL sox: Sorry, there is no default audio device configured Try hw:CARD=Set,DEV=1. The reason why dmix fails you escapes me currently. Certain software (like pulseaudio) can hold the sound card exclusively, could be the case. > No option to list _configured_ devices? aplay(1): -L, --list-pcms List all PCMs defined What you've got are the configured devices. > Maybe refer to /proc/asound/Device/. aplay -l > > The way I see it, there's no need for these "predictable audio devices > > names", they are here already. > > "dmix:CARD=PCH,DEV=0" could be a name in a hardware manual > published in 1970. Yet they are predictable the same way udev makes NICs predictable. Whenever it's aesthetic is in the eye of the beholder. > I'd still prefer to call a USB headset "USBheadset". They give you pulseaudio for that. > > A viable alternative is to install and use pulseaudio, of course. > > Installed it but don't see how it facilitates a text > command to play a WAV. sox <infile> -t pulseaudio And, since you're talking WAV - paplay <infile> . Reco
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Persistent names for audio devices. Peter Easthope <petereasthope@gmail.com> - 2019-10-19 03:10 +0200
Re: Persistent names for audio devices. Reco <recoverym4n@enotuniq.net> - 2019-10-20 13:50 +0200
Unidentified subject! peter@easthope.ca - 2019-10-20 17:20 +0200
Re: Unidentified subject! Reco <recoverym4n@enotuniq.net> - 2019-10-20 17:30 +0200
Re: Persistent names for audio devices. peter@easthope.ca - 2019-10-20 19:30 +0200
Re: Persistent names for audio devices. Reco <recoverym4n@enotuniq.net> - 2019-10-20 20:00 +0200
Re: Persistent names for audio devices. peter@easthope.ca - 2019-10-20 23:50 +0200
Re: Persistent names for audio devices. deloptes <deloptes@gmail.com> - 2019-10-20 18:10 +0200
csiph-web