aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-06-12 11:58:41 -0700
committerChris Robinson <[email protected]>2020-06-12 12:53:47 -0700
commit6ce9bf6c9441503bc7e7c3451f0954cbdfbeb6ab (patch)
tree51731fdc32751dd82dfcfc9fd23768e075e54e92 /alc/backends/base.h
parent26eccd159f0256d92ffdb8bdc9dee0bf3e73be57 (diff)
Move a couple related functions to the backend base
Diffstat (limited to 'alc/backends/base.h')
-rw-r--r--alc/backends/base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/alc/backends/base.h b/alc/backends/base.h
index 91a494e2..1824649b 100644
--- a/alc/backends/base.h
+++ b/alc/backends/base.h
@@ -34,6 +34,12 @@ struct BackendBase {
BackendBase(ALCdevice *device) noexcept : mDevice{device} { }
virtual ~BackendBase() = default;
+
+protected:
+ /** Sets the default channel order used by most non-WaveFormatEx-based APIs. */
+ void setDefaultChannelOrder();
+ /** Sets the default channel order used by WaveFormatEx. */
+ void setDefaultWFXChannelOrder();
};
using BackendPtr = std::unique_ptr<BackendBase>;