ALSA
æ¢ã«ã¾ã¨ãããã¥ã¡ã³ãã§ã¯å°ã触ãã¦ããããUbuntuã§ã¯ããã¼ã¸ã§ã³10.10ã®æç¹ã§ã¯ALSAãµã¦ã³ãã·ã¹ãã ã®ãã©ã¤ãã使ç¨ããç°å¢ã«ããã¦ãOSSã®ãµã¦ã³ãã·ã¹ãã ã«ãããããã¤ã¹ãã¡ã¤ã«/dev/dspã¯ããã£ã¹ããªæ¨æºã®ã«ã¼ãã«ã«ã¯åå¨ããªããã¾ããOâ¦
ããã§ã¯ãALSAãµã¦ã³ãã·ã¹ãã ã«å¯¾å¿ããã¢ããªã±ã¼ã·ã§ã³ããã®ãªã¼ãã£ãªåºåãWAVEå½¢å¼ã®ãã¡ã¤ã«ã«æ¸ãåºãæ¹æ³ã«ã¤ãã¦ãæ±ãã ãfileãã®ALSA PCMã¢ã¸ã¥ã¼ã«(ãã©ã°ã¤ã³)ãç¨ããæ¹æ³ ALSAãµã¦ã³ãã·ã¹ãã ä¸ã®PCMã¢ã¸ã¥ã¼ã«(ãã©ã°ã¤ã³)ã·ã¹ãã ã«â¦
2010å¹´3æãã試é¨é ä¿¡ããã¦ããradiko.jpã®ã©ã¸ãªæ¾éã¯å¯¾è±¡ã®ã¨ãªã¢å ããã®ã¢ã¯ã»ã¹ã«éãFlashãã©ã°ã¤ã³ãç¨ãã¦Webãã©ã¦ã¶ä¸ã§è´åã§ããã æ¾éå±ã®å 許ã«ããå°åéå®æ§ãé¢ä¿ãã¦ãããªã©ã®æ å ±ããããã®ã®ãå°åãããããå¤å®ãã¦éå®ããæå³â¦
ãALSAãµã¦ã³ãã·ã¹ãã ä¸ã®MIDIä¿¡å·ããã£ããã£ãã(åå)ãã®ç¶ãã åºåããããã¡ã¤ã«ã«ã¤ãã¦ã®æ³¨æç¹ ã¢ããªã±ã¼ã·ã§ã³ããã®ãã£ããã£ã¨ããæ§è³ªã«ãããæ¸ãåºãããMIDIãã¡ã¤ã«ã®æããã³ãã¯å ã®MIDIã·ã¼ã±ã³ã¹ã¨ã¯ç¡é¢ä¿ã¨ãªãããã®ããããâ¦
ALSAã®ãalsa-utilsãããã±ã¼ã¸ã«å«ã¾ããarecordmidiã¨ããã³ãã³ã*1ãç¨ããã¨ãä»»æã®ALSA MIDIãã¼ãããåºåãããMIDIã·ã¼ã±ã³ã¹ãæ¨æºMIDIãã¡ã¤ã«(SMF:Standard MIDI File)å½¢å¼ã§æ¸ãåºããã¨ãã§ããã ãã¼ãã®æå®ã«é¢ãã注æç¹ arecordmidiãâ¦
以åãSTed2ä¸ã®æ¼å¥ã¨ç¬èªã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã¤ãã¦(VirMIDIã¨rcpplayã使ç¨ããä¾ã»åå)ããSTed2ä¸ã®æ¼å¥ã¨ç¬èªã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã¤ãã¦(VirMIDIã¨rcpplayã使ç¨ããä¾ã»å¾å)ãã§ãå°ãæ±ã£ã¦ãããããã®æ©ä¼ã«ä½¿ãæ¹ãã¾ã¨ãã¦ããã åæ èµ·å ã¢ãâ¦
Mandriva Linux 2010.0ã§OpenALã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãä¸ãããTao Frameworkã®ã»ããããã«åãããä¿®æ£ããèªåã§ä½æãããã¯ä¿®æ£ããå¹¾ã¤ãã®Mandriva LinuxåãRPMããã±ã¼ã¸ãæ´æ°2ãã§è¡ã£ãã®ã ããopenBVEä¸ã§ãµã¦ã³ãåºåããã¾ãæå®ããã¦ããªâ¦
ãGNU/Linuxä¸ã®ãµã¦ã³ãã·ã¹ãã ã«ã¤ãã¦(åå)ãã®ç¶ãã ãµã¦ã³ããã¼ã¢ã³(å®é) 以ä¸ã®åãµã¦ã³ããã¼ã¢ã³ã«ã¯ãã¼ã¢ã³æ¬ä½ã®ä»ã«ã©ã¤ãã©ãªãåå¨ãã対å¿ã¢ããªã±ã¼ã·ã§ã³ãããã®ãµã¦ã³ãã·ã¹ãã (ãã¼ã¢ã³)ã«ã¢ã¯ã»ã¹ããæ¹æ³ãæä¾ããã PulseAudioâ¦
GNU/Linuxä¸ã®é³å£°åºåã«é¢ããä»çµã¿ã¯è¤éã«è¦ãã¦ãã¾ãããããã»ã©é£ããããã§ã¯ãªãã ä½ã¬ãã«ãµã¦ã³ãã·ã¹ãã ALSAãOSSã¨ãã£ããµã¦ã³ãã·ã¹ãã ã¯é³å£°ã®åºåãããããã¤ã¹ã¨æãå¯æ¥ãªé¢ä¿ããããã¢ããªã±ã¼ã·ã§ã³ããåãåã£ããã¼ã¿ããµã¦â¦
PyGTKã§ã·ã¹ãã ãã¬ã¤ã®ã¢ã¤ã³ã³ã®é£ã«ãããã¢ããã¦ã£ã³ãã¦ãä½æãã(åå) ã·ã¹ãã ãã¬ã¤ã¢ã¤ã³ã³ã®ä¸¦ã³æ¹åã«é¢ããè¦ãæ¸ã(2009/2/10ç¾å¨) PyGTKã§ã·ã¹ãã ãã¬ã¤ã®ã¢ã¤ã³ã³ã®é£ã«ãããã¢ããã¦ã£ã³ãã¦ãä½æãã(å¾å) ã·ã¹ãã ãã¬ã¤ã¢ã¤ã³ã³â¦
pyalsaaudio(http://pyalsaaudio.sourceforge.net/)ãç¨ããã¨ãPythonã®ã³ã¼ãããALSAã®ãããµã¼ãPCMããã¤ã¹ãæä½ãããã¨ãã§ããã ããã§ã¯ãããµã¼é ç®ã®åå¾ã¨é³éåå¾/å¤æ´ã試ãã¦ã¿ããã¨ã«ããã ãã£ã¹ããªã®ããã±ã¼ã¸ Gentooã§ã¯ãpyalsaauâ¦
æ¢å®(default)ã®PCMãã©ã°ã¤ã³ããã¤ã¹ ALSAã¢ããªã±ã¼ã·ã§ã³ã¯ãç¹ã«æå®ã®ãªãéãããdefaultãã¨ããPCMãã©ã°ã¤ã³ããã¤ã¹ã«å¯¾ãã¦ãã¼ã¿ã®ããã¨ããããããã®å®ç¾©ã¯/usr/share/alsa/cards/以ä¸ã®ã«ã¼ããã¨ã®è¨å®ãã¡ã¤ã«ã«ããã¦ããã*1 ãã®ãdefâ¦
ALSAã«ã¯PCMãã©ã°ã¤ã³ã¨ããä»çµã¿ããããPCMãã©ã°ã¤ã³ã¯ãPCMé³å£°ã«é¢ããè²ã ãªå¦çãè¡ãããã©ã°ã¤ã³ã¨ããã¨æ©è½æ¡å¼µã®ããã ããALSA対å¿ã¢ããªã±ã¼ã·ã§ã³ããé³ãåºãã¨ãã«ã¯ããalsa-libãããã±ã¼ã¸ã«å«ã¾ããPCMãã©ã°ã¤ã³ã1ã¤*1以ä¸ä½¿ç¨ããâ¦
(2014/10/3)2014å¹´æç¹ã§ã¯PulseAudioãALSAã«çµ±åããã¦ãããã£ã¹ããªãå¤æ°ã§ãALSAã®ã©ã¤ãã©ãªããALSAã®ãdmixããªã©ã®ãã©ã°ã¤ã³ãçµç±ãã¦ALSAã®ãã©ã¤ãã¸åºåããããã¨ã¯åºæ¬çã«ã¯ãªããæ¬è¨äºã®å½¢ãç¨ããã¡ãªããããªããJACK Audio Connectioâ¦
0.109ç³»ããå¤ãJACKã§ã¯ALSAã®MIDIãã©ã¤ãã使ç¨ã§ããªã JACK Audio Connection Kitãå¶å¾¡ããGUIã®QjackCtlã®è¨å®ãã¤ã¢ãã°ã«ã¯ãMIDI Driverãã¨ããé ç®ããããæå¹ã«ããå ´åã«ã¯ãseqãã¨ãrawããé¸æããããã«ãªã£ã¦ãã(ãnoneãã§ç¡å¹)ãããâ¦
復帰å¾ã«ä¸å ·åãèµ·ããå ´åã«ã¯ãµã¼ãã¹åæ¢/èµ·åã§åé¿ãã TuxOnIceãå®è¡ããããã«ä½¿ç¨ããhibernate-script*1ã«ã¯èªåã§ãµã¼ãã¹ãåæ¢/éå§ãã*2æ©è½ãããããµã¦ã³ãããã®1ã¤ã¨ãªã£ã¦ãã¦ãGentoo Linuxã§ã¯ã/etc/init.d/alsasoundã使ç¨ããããâ¦
ãSTed2ä¸ã®æ¼å¥ã¨ç¬èªã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã¤ãã¦(VirMIDIã¨rcpplayã使ç¨ããä¾ã»åå)ãã®ç¶ãã STed2ä¸ã®è¨å® STed2ä¸ã®æä½ ãã¼ãæ¥ç¶ã®ä»ã®å½¢(好ã¿ã®åé¡) 注æç¹(ä»æ§) ALSA MIDI(å®)ããã¤ã¹ã使ç¨ããå ´åã®è¦ãæ¸ã STed2ä¸ã®è¨å®åé¡ããªããã°ãâ¦
ãSTed2ä¸ã®æ¼å¥ã¨ç¬èªã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã¤ãã¦(æ¦è¦ã¨å¯¾å¿ç¶æ³)ãã¨ãSTed2ä¸ã®æ¼å¥ã¨ç¬èªã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ã¤ãã¦(TiMidity++ 1ã使ç¨)ãã®ç¶ãã TiMidity++ 2ã¯ãSTed2ã¤ã³ã¿ã¼ãã§ã¼ã¹ããããå½ãããªãã®ã ããALSAã·ã¼ã±ã³ãµã¤ã³ã¿ã¼ãã§ã¼ã¹æ©è½â¦
LADCCAã«å¯¾å¿ãã¦ããããLASHã«ãªã£ã¦ãã対å¿ãããæ¾ç½®ããã¦ããä¾ã¨ãã¦ãALSA Patch Bay(http://pkl.net/~node/software/alsa-patch-bay/)ããããALSA MIDIãã¼ãã¨JACK Audio Connection Kitã®ãã¼ããæ¥ç¶ããããã®GUIãã¼ã«ã§ãæ©è½ã使ãåæã¯Qâ¦
JACKã使ç¨ãããã¨ã§ãPCMé³å£°ã®é²é³ãè¡ãããJACK対å¿ã¢ããªã±ã¼ã·ã§ã³ã¯ãã¡ãããé対å¿ã¢ããªã±ã¼ã·ã§ã³ã§ãALSAã®ãã©ã°ã¤ã³ã«ãã使ç¨ã§ãããã¨ããããé²é³ãè¡ãã®ã«æãæå¹ãªæ¹æ³ã é¢é£è¨äº: ALSA PCMããã¤ã¹ã¨ãã¦JACK Audio Connection Kitâ¦
ã©ã¤ã³å ¥åããã¤ã¯ãªã©ã®å¤é¨å ¥åã®é²é³ã¯ãALSAæ¨æºã®é²é³æ©è½ã§è¡ãããJACK Audio Connection Kitã使ç¨ãããã¨ã§JACK対å¿ã¢ããªã±ã¼ã·ã§ã³ããé²é³ãããã¨ãã§ããããJACKã使ç¨ããæ¹æ³ã¯å¥ã®è¨äºã«ã¦æ±ãã ãããµã¼è¨å® é²é³ã«é¢ãããããµã¼è¨å®â¦
ãALSAã«ã¯å¯¾å¿ãã¦ãããJACKã«ã¯å¯¾å¿ãã¦ããªããã¨ããã¢ããªã±ã¼ã·ã§ã³ããã§ããJACKçµç±ã§ã®PCMé³å£°ã®ããã¨ããå¯è½ã«ãªãã ãã®ALSAãã©ã°ã¤ã³ã¯ãªãã·ã§ã³æ±ãã§ãalsa-libã«ã¯å«ã¾ããããalsa-pluginsãã®ä¸ã«å ¥ã£ã¦ãã¦ãDebianã§ã¯ãlibasoundâ¦
JACK Audio Connection Kitã使ç¨ããã¨ãé³å£°ãéåãã¦ãã¾ããã¨ãããã端æ«ã«ã¯ **** alsa_pcm: xrun of at least xx.xxx msecsã®ãããªå½¢ã§ãåããæéã®ç®å®ã表示ãããããããåºã¦ãã¾ãç¶æ³ã§ã¯ããªãèãè¦ããé³ã«ãªã£ã¦ãã¾ãã®ã ããå¹æçâ¦
JACK Audio Connection Kit(JACK)ã¯ãµã¦ã³ããã¼ã¢ã³(ãµã¼ã)ã®1ã¤ã§ã対å¿ããã¢ããªã±ã¼ã·ã§ã³éã§PCMé³å£°*1ã渡ããã¨ãã§ããã å ·ä½çã«ã¯ãããã½ããã¦ã§ã¢ããåºãé³å£°ã«å¥ã®ã½ãã(è¤æ°å¯)ã§ã¨ãã§ã¯ããéããã¨ããè¤æ°ã®ã¢ããªã±ã¼ã·ã§ã³ããã®â¦
[ãã¼ã ãã£ã¬ã¯ããª]/.asoundrcã§å®ç¾©ãããpcm.[åå]ãã¨ããPCMããã¤ã¹ãGStreamerã®ALSAåºåãã©ã°ã¤ã³(ã¨ã¬ã¡ã³ãåãalsasinkã)ã§ä½¿ç¨ããããã«ã¯ãalsasinkã¨ã¬ã¡ã³ãã¸ã®å¼æ°(ããããã£)ã¨ãã¦ãdevice=[ããã¤ã¹å]ããæå®ããå¿ è¦ãããããâ¦
${HOME}/.asoundrcãªã©ã«ç¬èªã®PCMããã¤ã¹ã®å®ç¾©ããã¦ããå ´åãã¢ããªã±ã¼ã·ã§ã³ããã¯ãã®ã¾ã¾ã§ã¯ä½¿ç¨ãããã使ç¨ããã«ã¯ãã¢ããªã±ã¼ã·ã§ã³ãã¨ã«åºæã®æ¹æ³ã§æå®ããå¿ è¦ãããã ALSA PCMããã¤ã¹åã®æå®æ¹æ³ ã¢ããªã±ã¼ã·ã§ã³è¨å®æ¹æ³ Audaciouâ¦
ALSAã®PCMãã©ã°ã¤ã³ã®ä¸ã«ãLADSPAãã©ã°ã¤ã³ãæ±ããladspaãã¨ãã種é¡ããããããã使ç¨ãããã¨ã§ãALSAçµç±ã§é³ãåºãéã«ãã£ã«ã¿ãããããã*1ã (2007/6/29)alsa-libã®ãã¼ã¸ã§ã³1.0.14_rc4ãå«ãããã以éã®ãã¼ã¸ã§ã³ã«ããã¦ãLADSPAãã©ã°ã¤â¦
GNU/Linuxä¸ã§é³ãåºãã¢ããªã±ã¼ã·ã§ã³ã«ã¯ãæ°ããALSAã©ã¤ãã©ãªçµç±ã§åºããã®ã¨ãå¤ãOSS APIã使ç¨ãã¦åºããã®ã¨ãããã*1 ALSAã«ã¯OSSã¨ãã¥ã¬ã¼ã·ã§ã³ã¢ã¼ãããããsnd-pcm-oss,snd-seq-oss,snd-mixer-ossã¨ãã£ãã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ãèªã¿è¾¼ã¾ãâ¦