Re: How to start mplayer with radio (.pls) url over ssh and have it play?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, 2024-07-01 at 22:37 -0500, David C. Rankin wrote:
> $ mplayer -ao alsa:device=hw=0 -loop 0 -playlist 
> http://playerservices.streamtheworld.com/pls/KDAQHD2.pls
> 
>    Though I'm quite curious why since this is card 0, it wasn't selected by 
> default the first time I tried?
> 
>    This may be the result of me having started fluxbox desktop and X 
> triggering the sound setup. I only have one sound card (and it's Alt on device:2)
> 
> $ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: Intel [HDA Intel], device 0: AD1984A Analog [AD1984A Analog]
>    Subdevices: 1/1
>    Subdevice #0: subdevice #0
> card 0: Intel [HDA Intel], device 2: AD1984A Alt Analog [AD1984A Alt Analog]
>    Subdevices: 1/1
>    Subdevice #0: subdevice #0

Hi David,

your audio device obviously provides device 0 and device 2. As a plain
ALSA (or sometimes, but very seldom jackd + ALSA backend user) I set up
the default device by $HOME/.asoundrc . I don't know if pulseaudio takes
care about this default. I don't use pulseaudio. When using jackd, I
need to get rid of $HOME/.asoundrc , before using jackd.

Don't be confused by my output, the first card is card 0 and the second
card is card 3, because I set up placeholders by
/etc/modprobe.d/alsa-base.conf . This is completely irrelevant for you,
it just explains why the output of aplay might be confusing on my
machine.

• rocketmouse@archlinux ~ 
$ cat /etc/modprobe.d/alsa-base.conf
# ALSA module ordering
options snd slots=snd_hdspm,snd_ice1712,snd_ice1712

When not using jackd, but just plain ALSA, I want audio output via HDMI.

• rocketmouse@archlinux ~ 
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDSPMx579bcc [RME AIO_579bcc], device 0: RME AIO [RME AIO]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 1: ALC897 Digital [ALC897 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 3: HDMI 0 [EV2450]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

This is my $HOME/.asoundrc :

• rocketmouse@archlinux ~ 
$ cat .asoundrc
defaults.pcm.card 3
defaults.pcm.device 3

Again, I don't know if pulseaudio cares about $HOME/.asoundrc . However,
for such simple Intel audio devices you usually don't need to do
something complicated, to use several apps at the same time. A sound
server isn't required to grant access to the audio device, this happens
automagically under the hood.

Right now on my machine Jimi Hendrix plays Voodoo Child on Waterfox and
Little Wing on Firefox via Intel HDMI.

As long as you don't need something tricky such as Bluetooth or
pro-audio, you much likely don't need a sound server at all.

When using my snd_hdspm, snd_ice1712 or an USB Scarlett 18i20 it's not
as easy as it is with the Intel audio device.

Regards,
Ralf




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux