[pulseaudio-discuss] [PATCH 0/3] Consider sample format in case of avoid-resampling

Sangchul Lee sangchul1011 at gmail.com
Thu Jun 28 19:57:00 UTC 2018


These patches make it possible to use a stream's original sample format
without resampling when the avoid-resampling option is set to a sink or
a source if the sample format is supported by alsa driver.

In the first patch, it is added to check supported sample formats of a
sink or source in a similar way of getting supported rates. The last
patch has some logics to consider sample format including reinitialization
of size information when it is needed.

Sangchul Lee (3):
  alsa-util/sink/source: Add infrastructure for supported sample formats
  alsa-sink/source: Rename a variable for supported sample rates in
    userdata
  alsa-sink/source, sink, source: Consider sample format for
    avoid-resampling

 src/modules/alsa/alsa-sink.c   | 109 +++++++++++++++++++++++++++++++++++------
 src/modules/alsa/alsa-source.c | 101 +++++++++++++++++++++++++++++++++-----
 src/modules/alsa/alsa-util.c   |  78 +++++++++++++++++++++++++++++
 src/modules/alsa/alsa-util.h   |   1 +
 src/pulsecore/sink.c           |   7 ++-
 src/pulsecore/source.c         |   7 ++-
 6 files changed, 271 insertions(+), 32 deletions(-)

-- 
2.7.4



More information about the pulseaudio-discuss mailing list