
私は組み込み Linux システム (kernel-5.10) で作業していますが、システムではオーディオを処理するために ladspa プラグインを設定する必要があります。
私の asound.conf の設定は次の通りです。これは、モノラル チャネルでオーディオを再生するための、という名前の PCM デバイスmono_ladspa_pcm
と ladspa プラグインのチェーンを定義します。
pcm.mono_ladspa_pcm {
type ladspa # Use ladspa plugin
slave {
pcm "hw:0,4" # input device
}
channels 1 # mono channel
playback_plugins { # Playback plugin definition.
0 { # 1st plugin
label "lpf" # plugin name/label
input {
bindings {
0 0 # connect input channel to plugin's input
}
}
output {
bindings {
0 0 # connect plugin's output to output channel
}
}
}
}
}
上記の設定では、サウンドは再生されません。
プラグインのパスの設定、ラベルまたは ID は正しく、ハードウェアは正常です。
ladspa フィルター プラグインを更新しました。
こちらが の別のasound.conf
例ですladspa low-pass-filter
。
pcm.my_lpf {
type ladspa # LADSPA
slave {
pcm "hw:0,4" # input device
}
channels 1 # mono-channel
path "/usr/lib/ladspa"
playback_plugins { # plugin definition
0 {
label "lpf" # plugin lable: lpf
input {
bindings {
0 1 # input channel to lpf input
}
controls {
4 5000
}
}
output {
bindings {
0 2 # lpf output to output channel.
}
}
controls {
4 5000
}
}
}
}
テストとデバッグに多くの時間を費やしましたが、それでも動作させることはできませんでした。