Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
462 stars 289 forks source link

What is software resampling in configuration files? #849

Open Ravi-Teja-konda opened 5 years ago

Ravi-Teja-konda commented 5 years ago

Hello Everyone,

In configuration files of aaf_talker, alsa_listener, there is an option for Software resampling. How this can be used? I want to understand the usage of this option.

Any comments would be helpful...

Thanks, Ravi Teja.

pinealservo commented 5 years ago

It controls a configuration parameter that's passed to Alsa, the Linux sound system. See lib/avtp_pipeline/platform/Linux/intf_alsa/openavb_intf_alsa.c, search for allowResampling. You'll have to refer to Alsa's documentation for more details, but the gist of it is that Alsa has a userspace component as well as a kernel component, and the userspace component includes a sample rate conversion module (with pluggable SRC algorithms for quality/performance tradeoffs) so that fixed-rate hardware can be interfaced to media with different sample rates.

Ravi-Teja-konda commented 5 years ago

Hi Levi Pearson,

Thank you for the reply.