ALSA

 ALSA(advanced linux sound architecture)


測試檔

gst-launch-1.0 audiotestsrc ! audioconvert ! alsasink device-name=realtekrt5651co

播放

gst-launch-1.0 filesrc location = 檔名路徑 !\
mpegaudioparse!\
avdec_mp3!\
audioconvert!\
alsasink devic=hw:0  (alsa走哪個裝置

系統資訊

可以到/proc搜尋系統資訊
/proc/uptime
可以看到系統啟動執行時間及系統空閒時間
/proc/cpuinfo
CPU資訊
/proc/asound
Audio資訊 如音效卡、HDMICODEC、devices、PCM...等

ALSA Tool

aplay
播放聲音
arecord
錄音
amixer
audio參數設定
alsamixer
audio參數設定介面

amixer & alsamixer的差異在於alsamixer有介面而amixer只是文字

留言