2022.09
Slack-15.0から、PulseAudioのオルタネートとしてPipeWireのサポートを追加:
ALSA PulseAudio PipeWire、でググった:
https://wiki.archlinux.jp/index.php/PipeWire
https://ja.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture
https://ja.wikipedia.org/wiki/PulseAudio
https://en-m-wikipedia-org.translate.goog/wiki/PipeWire?_x_tr_sl=en&_x_tr_tl=ja&_x_tr_hl=ja&_x_tr_pto=sc
defカーネルなので内臓音源対応にはあまり期待していないが、試しにalsaをinstallpkgしてみる。
~$ cat /proc/modules | grep -E ‘snd|sound’
snd_hda_codec_hdmi 69632 1 – Live 0x0000000000000000
snd_hda_codec_idt 65536 1 – Live 0x0000000000000000
snd_hda_codec_generic 90112 1 snd_hda_codec_idt, Live 0x0000000000000000
ledtrig_audio 16384 3 dell_laptop,dell_wmi,snd_hda_codec_generic, Live 0x0000000000000000
snd_hda_intel 57344 0 – Live 0x0000000000000000
snd_intel_dspcfg 24576 1 snd_hda_intel, Live 0x0000000000000000
snd_intel_sdw_acpi 16384 1 snd_intel_dspcfg, Live 0x0000000000000000
snd_hda_codec 163840 4 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel, Live 0x0000000000000000
snd_hda_core 106496 5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_codec, Live 0x0000000000000000
snd_hwdep 16384 1 snd_hda_codec, Live 0x0000000000000000
snd_pcm 139264 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core, Live 0x0000000000000000
snd_timer 36864 1 snd_pcm, Live 0x0000000000000000
snd 106496 8 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer, Live 0x0000000000000000
soundcore 16384 1 snd, Live 0x0000000000000000
\
$ sudo dmesg | grep -E ‘sound|snd’
[ 8.845276] snd_hda_codec_idt hdaudioC0D0: autoconfig for 92HD71B7X: line_outs=1 (0xf/0x0/0x0/0x0/0x0) type:line
[ 8.845420] snd_hda_codec_idt hdaudioC0D0: speaker_outs=1 (0xd/0x0/0x0/0x0/0x0)
[ 8.845548] snd_hda_codec_idt hdaudioC0D0: hp_outs=1 (0xa/0x0/0x0/0x0/0x0)
[ 8.845662] snd_hda_codec_idt hdaudioC0D0: mono: mono_out=0x0
[ 8.845772] snd_hda_codec_idt hdaudioC0D0: inputs:
[ 8.845881] snd_hda_codec_idt hdaudioC0D0: Dock Mic=0xe
[ 8.846560] snd_hda_codec_idt hdaudioC0D0: Internal Mic=0x18
[ 8.846643] snd_hda_codec_idt hdaudioC0D0: Mic=0xb
[ 9.086187] input: HDA Intel Dock Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[ 9.086497] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[ 9.086762] input: HDA Intel Dock Line Out as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 9.087025] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 9.087313] input: HDA Intel HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
\
$ ll /mnt2/slackware64/*/*alsa*.txt
\-rw-r–r– 1 root root 620 6月 15 2021 /mnt2/slackware64/ap/alsa-utils-1.2.5.1-x86_64-1.txt
\-rw-r–r– 1 root root 401 6月 15 2021 /mnt2/slackware64/l/alsa-lib-1.2.5.1-x86_64-1.txt
\-rw-r–r– 1 root root 501 2月 13 2021 /mnt2/slackware64/l/alsa-oss-1.1.8-x86_64-3.txt
\-rw-r–r– 1 root root 402 6月 1 2021 /mnt2/slackware64/l/alsa-plugins-1.2.5-x86_64-1.txt
\
$ sudo installpkg /mnt2/slackware64/l/alsa-oss-1.1.8-x86_64-3.txz
$ sudo installpkg /mnt2/slackware64/l/alsa-lib-1.2.5.1-x86_64-1.txz
$ sudo installpkg /mnt2/slackware64/l/alsa-plugins-1.2.5-x86_64-1.txz
$ sudo installpkg /mnt2/slackware64/ap/alsa-utils-1.2.5.1-x86_64-1.txz
(不足libが発生する)
/etcのrc.alsa-ossを見るとOSSには、snd-pcm-oss,snd-seq-oss,snd-mixer-oss が必要だがmodulesには
ない。カーネルのリビルドが必要になる。GCCも必要になる。どうせいずれnode.jsも練習するから今から
入れておくか? OSSはspitzでも使っているmp3blasterに必要。mp3blasterが問題なく使えることでデバ
ドラはOKということにしたい。
https://seesaawiki.jp/lifewithslackzaurus/d/Mp3%20Player
https://seesaawiki.jp/lifewithslackzaurus/d/%a5%b5%a5%a6%a5%f3%a5%c9%a5%c9%a5%e9%a5%a4%a5%d0
それから音についてはしばらく放っておいた。他にやりたい事あったし。
2023.04
WordPressでHPを作ってみる
https://seesaawiki.jp/lifewithslackzaurus_15_0/d/WordPress%a4%c7HP%a4%f2%ba%ee%a4%c3%a4%c6%a4%df%a4%eb
で、Youtubeをスマホで見ながらWordPressやってたが、出先でスマホ持ってくるの忘れた。
\
イロイロ調べながら昔のアプリを動かすのは一旦置いて、
とりあえずALSAとその不足libを入れたら、Webアプリ(要するにブラウザ)であっさり音が出た。
$ grep -E ‘bin|lib’ /var/log/packages/alsa-oss-1.1.8-x86_64-3 | sed s@^@/@ | xargs ldd | grep found
$ grep -E ‘bin|lib’ /var/log/packages/alsa-lib-1.2.5.1-x86_64-1 | sed s@^@/@ | xargs ldd | grep found
$ grep -E ‘bin|lib’ /var/log/packages/alsa-plugins-1.2.5-x86_64-1 | sed s@^@/@ | xargs ldd | grep found
$ grep -E ‘bin|lib’ /var/log/packages/alsa-utils-1.2.5.1-x86_64-1 | sed s@^@/@ | xargs ldd | grep found
(不足libはlibsamplerate-0.2.2-x86_64-1だけだった)
$ sudo installpkg /mnt2/slackware64/l/libsamplerate-0.2.2-x86_64-1.txz
\
/etc/rc.d/rc.alsa、/etc/rc.d/rc.alsa-oss、/etc/rc.d/rc.pulseaudio、には実行権付けてない
から起動時にも何もしてない。
2023.07
USBヘッドホンだと聞けないことはないが、御多分に漏れず音量は小さいようで、ちょっと調べたが、
linux 音量 コマンド、でググった:
Linux の Audio 機能をコマンドラインで設定
https://qiita.com/propella/items/4699eda71cd742cba8d3
やっぱりメンドクサクなって後回しにした。
\
がやっぱり不便で、ちょっとやったらうまくいった。
$ pacmd list-sinks | grep name:
\ name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
\ name: <alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo>
$ pacmd set-default-sink alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo
($ pacmd set-sink-mute @DEFAULT_SINK@ 0 //ミュートはしていなかったので実行しなかった)
$ pacmd set-sink-volume @DEFAULT_SINK@ 0xb400 //音量を70%程度に設定 (0x10000 が最大値)
(うまくいった。音量上がった)
$ sudo pulseaudio -D (デーモンが起動してないと言われたら)
installまたは展開時のメッセージ:
# alsa-oss (library/wrapper to use OSS programs with ALSA)
# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
# functionality to the Linux operating system. OSS (Open Sound System)
# is an older sound system for Linux that ALSA is replacing. Using
# the aoss wrapper you can use programs that only support OSS with ALSA
# without having to load the OSS compatibility kernel modules.
#
# alsa-lib (Advanced Linux Sound Architecture library)
# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
# functionality to the Linux operating system. This is the ALSA library
# (libasound) which is used by audio applications.
# For more information, see http://alsa-project.org
#
# alsa-plugins (Advanced Linux Sound Architecture Plugins)
# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
# functionality to the Linux operating system.
# This package includes plugins for ALSA.
# Website: http://www.alsa-project.org
#
# alsa-utils (Advanced Linux Sound Architecture utilities)
# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
# functionality to the Linux operating system. This package contains
# command line audio utilities for use with ALSA:
# alsactl (manage soundcard settings)
# arecord/aplay (capture and play audio)
# amixer (adjust mixer settings from the command line)
# alsamixer (an ncurses-based console mixer)
# For more information, see http://alsa-project.org
#
# libsamplerate (a Sample Rate Converter for audio)
# Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
# audio. One example of where such a thing would be useful is
# converting audio from the CD sample rate of 44.1kHz to the 48kHz
# sample rate used by DAT players. SRC is capable of arbitrary and time
# varying conversions. SRC provides a small set of converters to allow
# quality to be traded off against computation cost.
# Homepage: http://www.mega-nerd.com/SRC/