On a Linux + ALSA microcomputer platform I'm trying to filter my microphone input for all my applications through a LADSPA filter. The filter takes a certain amount of CPU processing.

Below is an example of my /etc/asound.conf

type ladspa
slave.pcm "dsnoop_48000"
path "/usr/lib/ladspa"
    label computationally_heavy_filter

pcm.dsnoop_48000 {
type dsnoop
slave.pcm "hw:0,0"

I've noticed arecord -D filtered_capture linearly increases per command I run, and it's much higher than what file I/O would use. Is there any way to set up my ALSA plugins so that the audio PCM data that is getting shared is happening after the filter instead of before?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.