From 4a8f4ddd4fb0c413223af1e5aa8240d6827cef70 Mon Sep 17 00:00:00 2001 From: Chun-Min Chang Date: Thu, 16 Feb 2017 17:49:31 +0800 Subject: Downmix audio data on OSX --- src/cubeb_mixer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/cubeb_mixer.cpp') diff --git a/src/cubeb_mixer.cpp b/src/cubeb_mixer.cpp index 0f36c34..1cdbfd2 100644 --- a/src/cubeb_mixer.cpp +++ b/src/cubeb_mixer.cpp @@ -395,3 +395,11 @@ cubeb_upmix_float(float * const in, long inframes, float * out, { cubeb_upmix(in, inframes, out, in_channels, out_channels); } + +void +cubeb_downmix_short(short * const in, long inframes, short * out, + unsigned int in_channels, unsigned int out_channels, + cubeb_channel_layout in_layout, cubeb_channel_layout out_layout) +{ + cubeb_downmix(in, inframes, out, in_channels, out_channels, in_layout, out_layout); +} -- cgit v1.2.3