如何在 xubuntu 上使用 alsa 設備 hw:0

如何在 xubuntu 上使用 alsa 設備 hw:0

我有一個音訊處理軟體,設計用於使用 alsa 的hw:0設備。在我的 xubuntu 機器上,我得到與此命令列相同的錯誤:

$ aplay -D hw:0 440.wav 
aplay: main:830: audio open error: Device or resource busy

這是因為pulseaudio擁有周邊設備:

$ fuser -fv /dev/snd/* /dev/dsp*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  max        7108 F.... pulseaudio
/dev/snd/controlC1:  max        7108 F.... pulseaudio
/dev/snd/pcmC0D0p:   max        7108 F...m pulseaudio
/dev/snd/timer:      max        7108 f.... pulseaudio

這是我的卡片列表:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 0: ALC1220 Analog [ALC1220 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 1: ALC1220 Digital [ALC1220 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

我想知道如何讓pulseaudio和我的這個軟體一起生活

相關內容