aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_mixer.cpp
diff options
context:
space:
mode:
authorMichael Maltese <[email protected]>2017-04-01 17:29:14 -0700
committerMatthew Gregan <[email protected]>2017-04-13 09:22:09 +1200
commit727a7a4bccd046e9c411e030bcc34390eb5644ed (patch)
tree76f10cd590d3b07496893cc7717b387866a18af8 /src/cubeb_mixer.cpp
parenteacf836bb374469c541956a29a933c3c264d93c0 (diff)
downloadcubeb-727a7a4bccd046e9c411e030bcc34390eb5644ed.tar.gz
cubeb-727a7a4bccd046e9c411e030bcc34390eb5644ed.zip
wasapi: Add and use class mixing_wrapper
Similar to audiounit's version, encapsulates the data type being worked on.
Diffstat (limited to 'src/cubeb_mixer.cpp')
-rw-r--r--src/cubeb_mixer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cubeb_mixer.cpp b/src/cubeb_mixer.cpp
index 2958133..26243c6 100644
--- a/src/cubeb_mixer.cpp
+++ b/src/cubeb_mixer.cpp
@@ -446,6 +446,12 @@ cubeb_should_downmix(cubeb_stream_params const * stream, cubeb_stream_params con
mixer->layout == CUBEB_LAYOUT_3F1_LFE));
}
+bool
+cubeb_should_mix(cubeb_stream_params const * stream, cubeb_stream_params const * mixer)
+{
+ return cubeb_should_upmix(stream, mixer) || cubeb_should_downmix(stream, mixer);
+}
+
void
cubeb_downmix_float(float * const in, long inframes, float * out,
unsigned int in_channels, unsigned int out_channels,