aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_mixer.cpp
diff options
context:
space:
mode:
authorChun-Min Chang <[email protected]>2017-02-16 17:49:31 +0800
committerAlex Chronopoulos <[email protected]>2017-03-15 13:07:50 +0100
commit4a8f4ddd4fb0c413223af1e5aa8240d6827cef70 (patch)
tree5517b28057a94c0186aff7fda27e82869c991b55 /src/cubeb_mixer.cpp
parentc176407b69c9784b22b8f2b5066452564b39edb9 (diff)
downloadcubeb-4a8f4ddd4fb0c413223af1e5aa8240d6827cef70.tar.gz
cubeb-4a8f4ddd4fb0c413223af1e5aa8240d6827cef70.zip
Downmix audio data on OSX
Diffstat (limited to 'src/cubeb_mixer.cpp')
-rw-r--r--src/cubeb_mixer.cpp8
1 files changed, 8 insertions, 0 deletions
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);
+}