From 6ce9bf6c9441503bc7e7c3451f0954cbdfbeb6ab Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 12 Jun 2020 11:58:41 -0700 Subject: Move a couple related functions to the backend base --- alc/backends/base.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'alc/backends/base.h') 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; -- cgit v1.2.3