{"id":135,"date":"2023-04-24T20:03:54","date_gmt":"2023-04-24T11:03:54","guid":{"rendered":"https:\/\/shirakawa.weblike.jp\/blog-page\/?p=135"},"modified":"2025-05-05T09:10:47","modified_gmt":"2025-05-05T00:10:47","slug":"alsa%e3%81%a8%e3%81%9d%e3%81%aelib%e3%82%92%e5%85%a5%e3%82%8c%e3%81%9f%e3%82%89web%e3%82%a2%e3%83%97%e3%83%aa%e3%81%af%e3%81%82%e3%81%a3%e3%81%95%e3%82%8a%e9%9f%b3%e3%81%8c%e5%87%ba%e3%81%9f","status":"publish","type":"post","link":"https:\/\/shirakawa.weblike.jp\/blog-page\/2023\/04\/24\/alsa%e3%81%a8%e3%81%9d%e3%81%aelib%e3%82%92%e5%85%a5%e3%82%8c%e3%81%9f%e3%82%89web%e3%82%a2%e3%83%97%e3%83%aa%e3%81%af%e3%81%82%e3%81%a3%e3%81%95%e3%82%8a%e9%9f%b3%e3%81%8c%e5%87%ba%e3%81%9f\/","title":{"rendered":"ALSA\u3068\u305d\u306elib\u3092\u5165\u308c\u305f\u3089Web\u30a2\u30d7\u30ea\u306f\u3042\u3063\u3055\u308a\u97f3\u304c\u51fa\u305f"},"content":{"rendered":"<p>2022.09<br \/>\nSlack-15.0\u304b\u3089\u3001PulseAudio\u306e\u30aa\u30eb\u30bf\u30cd\u30fc\u30c8\u3068\u3057\u3066PipeWire\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\uff1a<br \/>\nALSA PulseAudio PipeWire\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\nhttps:\/\/wiki.archlinux.jp\/index.php\/PipeWire<br \/>\nhttps:\/\/ja.wikipedia.org\/wiki\/Advanced_Linux_Sound_Architecture<br \/>\nhttps:\/\/ja.wikipedia.org\/wiki\/PulseAudio<br \/>\nhttps:\/\/en-m-wikipedia-org.translate.goog\/wiki\/PipeWire?_x_tr_sl=en&#038;_x_tr_tl=ja&#038;_x_tr_hl=ja&#038;_x_tr_pto=sc<br \/>\ndef\u30ab\u30fc\u30cd\u30eb\u306a\u306e\u3067\u5185\u81d3\u97f3\u6e90\u5bfe\u5fdc\u306b\u306f\u3042\u307e\u308a\u671f\u5f85\u3057\u3066\u3044\u306a\u3044\u304c\u3001\u8a66\u3057\u306balsa\u3092installpkg\u3057\u3066\u307f\u308b\u3002<br \/>\n~$ cat \/proc\/modules | grep -E &#8216;snd|sound&#8217;<br \/>\nsnd_hda_codec_hdmi 69632 1 &#8211; Live 0x0000000000000000<br \/>\nsnd_hda_codec_idt 65536 1 &#8211; Live 0x0000000000000000<br \/>\nsnd_hda_codec_generic 90112 1 snd_hda_codec_idt, Live 0x0000000000000000<br \/>\nledtrig_audio 16384 3 dell_laptop,dell_wmi,snd_hda_codec_generic, Live 0x0000000000000000<br \/>\nsnd_hda_intel 57344 0 &#8211; Live 0x0000000000000000<br \/>\nsnd_intel_dspcfg 24576 1 snd_hda_intel, Live 0x0000000000000000<br \/>\nsnd_intel_sdw_acpi 16384 1 snd_intel_dspcfg, Live 0x0000000000000000<br \/>\nsnd_hda_codec 163840 4 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel, Live 0x0000000000000000<br \/>\nsnd_hda_core 106496 5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_codec, Live 0x0000000000000000<br \/>\nsnd_hwdep 16384 1 snd_hda_codec, Live 0x0000000000000000<br \/>\nsnd_pcm 139264 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core, Live 0x0000000000000000<br \/>\nsnd_timer 36864 1 snd_pcm, Live 0x0000000000000000<br \/>\nsnd 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<br \/>\nsoundcore 16384 1 snd, Live 0x0000000000000000<br \/>\n\\<br \/>\n$ sudo dmesg | grep -E &#8216;sound|snd&#8217;<br \/>\n[ 8.845276] snd_hda_codec_idt hdaudioC0D0: autoconfig for 92HD71B7X: line_outs=1 (0xf\/0x0\/0x0\/0x0\/0x0) type:line<br \/>\n[ 8.845420] snd_hda_codec_idt hdaudioC0D0: speaker_outs=1 (0xd\/0x0\/0x0\/0x0\/0x0)<br \/>\n[ 8.845548] snd_hda_codec_idt hdaudioC0D0: hp_outs=1 (0xa\/0x0\/0x0\/0x0\/0x0)<br \/>\n[ 8.845662] snd_hda_codec_idt hdaudioC0D0: mono: mono_out=0x0<br \/>\n[ 8.845772] snd_hda_codec_idt hdaudioC0D0: inputs:<br \/>\n[ 8.845881] snd_hda_codec_idt hdaudioC0D0: Dock Mic=0xe<br \/>\n[ 8.846560] snd_hda_codec_idt hdaudioC0D0: Internal Mic=0x18<br \/>\n[ 8.846643] snd_hda_codec_idt hdaudioC0D0: Mic=0xb<br \/>\n[ 9.086187] input: HDA Intel Dock Mic as \/devices\/pci0000:00\/0000:00:1b.0\/sound\/card0\/input6<br \/>\n[ 9.086497] input: HDA Intel Mic as \/devices\/pci0000:00\/0000:00:1b.0\/sound\/card0\/input7<br \/>\n[ 9.086762] input: HDA Intel Dock Line Out as \/devices\/pci0000:00\/0000:00:1b.0\/sound\/card0\/input8<br \/>\n[ 9.087025] input: HDA Intel Headphone as \/devices\/pci0000:00\/0000:00:1b.0\/sound\/card0\/input9<br \/>\n[ 9.087313] input: HDA Intel HDMI\/DP,pcm=3 as \/devices\/pci0000:00\/0000:00:1b.0\/sound\/card0\/input10<br \/>\n\\<br \/>\n$ ll \/mnt2\/slackware64\/*\/*alsa*.txt<br \/>\n\\-rw-r&#8211;r&#8211; 1 root root 620 6\u6708 15 2021 \/mnt2\/slackware64\/ap\/alsa-utils-1.2.5.1-x86_64-1.txt<br \/>\n\\-rw-r&#8211;r&#8211; 1 root root 401 6\u6708 15 2021 \/mnt2\/slackware64\/l\/alsa-lib-1.2.5.1-x86_64-1.txt<br \/>\n\\-rw-r&#8211;r&#8211; 1 root root 501 2\u6708 13 2021 \/mnt2\/slackware64\/l\/alsa-oss-1.1.8-x86_64-3.txt<br \/>\n\\-rw-r&#8211;r&#8211; 1 root root 402 6\u6708 1 2021 \/mnt2\/slackware64\/l\/alsa-plugins-1.2.5-x86_64-1.txt<br \/>\n\\<br \/>\n$ sudo installpkg \/mnt2\/slackware64\/l\/alsa-oss-1.1.8-x86_64-3.txz<br \/>\n$ sudo installpkg \/mnt2\/slackware64\/l\/alsa-lib-1.2.5.1-x86_64-1.txz<br \/>\n$ sudo installpkg \/mnt2\/slackware64\/l\/alsa-plugins-1.2.5-x86_64-1.txz<br \/>\n$ sudo installpkg \/mnt2\/slackware64\/ap\/alsa-utils-1.2.5.1-x86_64-1.txz<br \/>\n(\u4e0d\u8db3lib\u304c\u767a\u751f\u3059\u308b)<br \/>\n\/etc\u306erc.alsa-oss\u3092\u898b\u308b\u3068OSS\u306b\u306f\u3001snd-pcm-oss,snd-seq-oss,snd-mixer-oss \u304c\u5fc5\u8981\u3060\u304cmodules\u306b\u306f<br \/>\n\u306a\u3044\u3002\u30ab\u30fc\u30cd\u30eb\u306e\u30ea\u30d3\u30eb\u30c9\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002GCC\u3082\u5fc5\u8981\u306b\u306a\u308b\u3002\u3069\u3046\u305b\u3044\u305a\u308cnode.js\u3082\u7df4\u7fd2\u3059\u308b\u304b\u3089\u4eca\u304b\u3089<br \/>\n\u5165\u308c\u3066\u304a\u304f\u304b? OSS\u306fspitz\u3067\u3082\u4f7f\u3063\u3066\u3044\u308bmp3blaster\u306b\u5fc5\u8981\u3002mp3blaster\u304c\u554f\u984c\u306a\u304f\u4f7f\u3048\u308b\u3053\u3068\u3067\u30c7\u30d0<br \/>\n\u30c9\u30e9\u306fOK\u3068\u3044\u3046\u3053\u3068\u306b\u3057\u305f\u3044\u3002<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus\/d\/Mp3%20Player<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus\/d\/%a5%b5%a5%a6%a5%f3%a5%c9%a5%c9%a5%e9%a5%a4%a5%d0<br \/>\n\u305d\u308c\u304b\u3089\u97f3\u306b\u3064\u3044\u3066\u306f\u3057\u3070\u3089\u304f\u653e\u3063\u3066\u304a\u3044\u305f\u3002\u4ed6\u306b\u3084\u308a\u305f\u3044\u4e8b\u3042\u3063\u305f\u3057\u3002<\/p>\n<p>2023.04<br \/>\nWordPress\u3067HP\u3092\u4f5c\u3063\u3066\u307f\u308b<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/WordPress%a4%c7HP%a4%f2%ba%ee%a4%c3%a4%c6%a4%df%a4%eb<br \/>\n\u3067\u3001Youtube\u3092\u30b9\u30de\u30db\u3067\u898b\u306a\u304c\u3089WordPress\u3084\u3063\u3066\u305f\u304c\u3001\u51fa\u5148\u3067\u30b9\u30de\u30db\u6301\u3063\u3066\u304f\u308b\u306e\u5fd8\u308c\u305f\u3002<br \/>\n\\<br \/>\n\u30a4\u30ed\u30a4\u30ed\u8abf\u3079\u306a\u304c\u3089\u6614\u306e\u30a2\u30d7\u30ea\u3092\u52d5\u304b\u3059\u306e\u306f\u4e00\u65e6\u7f6e\u3044\u3066\u3001<br \/>\n\u3068\u308a\u3042\u3048\u305aALSA\u3068\u305d\u306e\u4e0d\u8db3lib\u3092\u5165\u308c\u305f\u3089\u3001Web\u30a2\u30d7\u30ea(\u8981\u3059\u308b\u306b\u30d6\u30e9\u30a6\u30b6)\u3067\u3042\u3063\u3055\u308a\u97f3\u304c\u51fa\u305f\u3002<br \/>\n$ grep -E &#8216;bin|lib&#8217; \/var\/log\/packages\/alsa-oss-1.1.8-x86_64-3 | sed s@^@\/@ | xargs ldd | grep found<br \/>\n$ grep -E &#8216;bin|lib&#8217; \/var\/log\/packages\/alsa-lib-1.2.5.1-x86_64-1 | sed s@^@\/@ | xargs ldd | grep found<br \/>\n$ grep -E &#8216;bin|lib&#8217; \/var\/log\/packages\/alsa-plugins-1.2.5-x86_64-1 | sed s@^@\/@ | xargs ldd | grep found<br \/>\n$ grep -E &#8216;bin|lib&#8217; \/var\/log\/packages\/alsa-utils-1.2.5.1-x86_64-1 | sed s@^@\/@ | xargs ldd | grep found<br \/>\n(\u4e0d\u8db3lib\u306flibsamplerate-0.2.2-x86_64-1\u3060\u3051\u3060\u3063\u305f)<br \/>\n$ sudo installpkg \/mnt2\/slackware64\/l\/libsamplerate-0.2.2-x86_64-1.txz<br \/>\n\\<br \/>\n\/etc\/rc.d\/rc.alsa\u3001\/etc\/rc.d\/rc.alsa-oss\u3001\/etc\/rc.d\/rc.pulseaudio\u3001\u306b\u306f\u5b9f\u884c\u6a29\u4ed8\u3051\u3066\u306a\u3044<br \/>\n\u304b\u3089\u8d77\u52d5\u6642\u306b\u3082\u4f55\u3082\u3057\u3066\u306a\u3044\u3002<\/p>\n<p>2023.07<br \/>\nUSB\u30d8\u30c3\u30c9\u30db\u30f3\u3060\u3068\u805e\u3051\u306a\u3044\u3053\u3068\u306f\u306a\u3044\u304c\u3001\u5fa1\u591a\u5206\u306b\u6f0f\u308c\u305a\u97f3\u91cf\u306f\u5c0f\u3055\u3044\u3088\u3046\u3067\u3001\u3061\u3087\u3063\u3068\u8abf\u3079\u305f\u304c\u3001<br \/>\nlinux \u97f3\u91cf \u30b3\u30de\u30f3\u30c9\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\nLinux \u306e Audio \u6a5f\u80fd\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u8a2d\u5b9a<br \/>\nhttps:\/\/qiita.com\/propella\/items\/4699eda71cd742cba8d3<br \/>\n\u3084\u3063\u3071\u308a\u30e1\u30f3\u30c9\u30af\u30b5\u30af\u306a\u3063\u3066\u5f8c\u56de\u3057\u306b\u3057\u305f\u3002<br \/>\n\\<br \/>\n\u304c\u3084\u3063\u3071\u308a\u4e0d\u4fbf\u3067\u3001\u3061\u3087\u3063\u3068\u3084\u3063\u305f\u3089\u3046\u307e\u304f\u3044\u3063\u305f\u3002<br \/>\n$ pacmd list-sinks | grep name:<br \/>\n\\ name: &lt;alsa_output.pci-0000_00_1b.0.analog-stereo&gt;<br \/>\n\\ name: &lt;alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo&gt;<br \/>\n$ pacmd set-default-sink alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo<br \/>\n($ pacmd set-sink-mute @DEFAULT_SINK@ 0 \/\/\u30df\u30e5\u30fc\u30c8\u306f\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u5b9f\u884c\u3057\u306a\u304b\u3063\u305f)<br \/>\n$ pacmd set-sink-volume @DEFAULT_SINK@ 0xb400 \/\/\u97f3\u91cf\u309270%\u7a0b\u5ea6\u306b\u8a2d\u5b9a (0x10000 \u304c\u6700\u5927\u5024)<br \/>\n(\u3046\u307e\u304f\u3044\u3063\u305f\u3002\u97f3\u91cf\u4e0a\u304c\u3063\u305f)<br \/>\n$ sudo pulseaudio -D (\u30c7\u30fc\u30e2\u30f3\u304c\u8d77\u52d5\u3057\u3066\u306a\u3044\u3068\u8a00\u308f\u308c\u305f\u3089)<\/p>\n<p>install\u307e\u305f\u306f\u5c55\u958b\u6642\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\uff1a<br \/>\n# alsa-oss (library\/wrapper to use OSS programs with ALSA)<br \/>\n# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI<br \/>\n# functionality to the Linux operating system. OSS (Open Sound System)<br \/>\n# is an older sound system for Linux that ALSA is replacing. Using<br \/>\n# the aoss wrapper you can use programs that only support OSS with ALSA<br \/>\n# without having to load the OSS compatibility kernel modules.<br \/>\n#<br \/>\n# alsa-lib (Advanced Linux Sound Architecture library)<br \/>\n# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI<br \/>\n# functionality to the Linux operating system. This is the ALSA library<br \/>\n# (libasound) which is used by audio applications.<br \/>\n# For more information, see http:\/\/alsa-project.org<br \/>\n#<br \/>\n# alsa-plugins (Advanced Linux Sound Architecture Plugins)<br \/>\n# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI<br \/>\n# functionality to the Linux operating system.<br \/>\n# This package includes plugins for ALSA.<br \/>\n# Website: http:\/\/www.alsa-project.org<br \/>\n#<br \/>\n# alsa-utils (Advanced Linux Sound Architecture utilities)<br \/>\n# The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI<br \/>\n# functionality to the Linux operating system. This package contains<br \/>\n# command line audio utilities for use with ALSA:<br \/>\n# alsactl (manage soundcard settings)<br \/>\n# arecord\/aplay (capture and play audio)<br \/>\n# amixer (adjust mixer settings from the command line)<br \/>\n# alsamixer (an ncurses-based console mixer)<br \/>\n# For more information, see http:\/\/alsa-project.org<br \/>\n#<br \/>\n# libsamplerate (a Sample Rate Converter for audio)<br \/>\n# Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for<br \/>\n# audio. One example of where such a thing would be useful is<br \/>\n# converting audio from the CD sample rate of 44.1kHz to the 48kHz<br \/>\n# sample rate used by DAT players. SRC is capable of arbitrary and time<br \/>\n# varying conversions. SRC provides a small set of converters to allow<br \/>\n# quality to be traded off against computation cost.<br \/>\n# Homepage: http:\/\/www.mega-nerd.com\/SRC\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2022.09 Slack-15.0\u304b\u3089\u3001PulseAudio\u306e\u30aa\u30eb\u30bf\u30cd\u30fc\u30c8\u3068\u3057\u3066PipeWire\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\uff1a ALSA PulseAudio PipeWire\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a https:\/\/wiki.archli [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-linux-system"],"_links":{"self":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":1,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":136,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/135\/revisions\/136"}],"wp:attachment":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}