[pulseaudio-discuss] [PATCH 12/23] core: Move pa_mix() into new file mix.c

Tanu Kaskinen tanuk at iki.fi
Thu Feb 14 07:12:18 PST 2013


On Wed, 2013-02-13 at 17:26 +0100, Peter Meerwald wrote:
> idea is to allow optimized code path (similar to volume code)
> and rework/specialize mixing cases to enable runtime performance improvements
> 
> no functionality changes in this patch
> 
> Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
> ---
>  src/Makefile.am                     |    2 +
>  src/modules/module-virtual-source.c |    1 +
>  src/pulsecore/mix.c                 |  679 +++++++++++++++++++++++++++++++++++
>  src/pulsecore/mix.h                 |   59 +++
>  src/pulsecore/sample-util.c         |  644 ---------------------------------
>  src/pulsecore/sample-util.h         |   28 --
>  src/pulsecore/sink-input.c          |    2 +-
>  src/pulsecore/sink.c                |    1 +
>  src/pulsecore/sound-file-stream.c   |    1 +
>  src/pulsecore/source-output.c       |    2 +-
>  src/pulsecore/source.c              |    2 +-
>  src/tests/mix-test.c                |    1 +
>  12 files changed, 747 insertions(+), 675 deletions(-)
>  create mode 100644 src/pulsecore/mix.c
>  create mode 100644 src/pulsecore/mix.h
> 
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 1208a35..d479194 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -856,6 +856,8 @@ libpulsecore_ at PA_MAJORMINOR@_la_SOURCES = \
>  		pulsecore/remap_mmx.c pulsecore/remap_sse.c \
>  		pulsecore/resampler.c pulsecore/resampler.h \
>  		pulsecore/rtpoll.c pulsecore/rtpoll.h \
> +		pulsecore/sample-util.c pulsecore/sample-util.h \

Why is sample-util added to libpulsecore? It's also in libpulsecommon,
so it should already be available to libpulsecore.

-- 
Tanu



More information about the pulseaudio-discuss mailing list