Spotifyd / spotifyd

A spotify daemon
https://spotifyd.rs
GNU General Public License v3.0
9.9k stars 451 forks source link

about alsa device is there any possible to add support device id such as hw:0,1 #1088

Open littlesum opened 2 years ago

littlesum commented 2 years ago
~ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default
    Default Audio Device
sysdefault
    Default Audio Device
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default:CARD=X4
    Sound Blaster X4, USB Audio
    Default Audio Device
sysdefault:CARD=X4
    Sound Blaster X4, USB Audio
    Default Audio Device
front:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    Front output / input
surround21:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=X4,DEV=0
    Sound Blaster X4, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
iec958:CARD=X4,DEV=1
    Sound Blaster X4, USB Audio #1
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=X4
    Sound Blaster X4
    USB Stream Output
~ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: X4 [Sound Blaster X4], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: X4 [Sound Blaster X4], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: X4 [Sound Blaster X4], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
device = "default"  # omit for macOS

only use default it works ? what I should write?

if I want change to another device could not work!

eladyn commented 2 years ago

Hi!

It should definitely be possible to use something else than default as the value for device, if it is listed in the aplay -L output. Looking at your outputs, you could probably use something like device = "default:CARD=X4".

Does this work / answer your question?