diff options
author | Chris Robinson <[email protected]> | 2020-06-12 11:58:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-06-12 12:53:47 -0700 |
commit | 6ce9bf6c9441503bc7e7c3451f0954cbdfbeb6ab (patch) | |
tree | 51731fdc32751dd82dfcfc9fd23768e075e54e92 /alc/backends/base.h | |
parent | 26eccd159f0256d92ffdb8bdc9dee0bf3e73be57 (diff) |
Move a couple related functions to the backend base
Diffstat (limited to 'alc/backends/base.h')
-rw-r--r-- | alc/backends/base.h | 6 |
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>; |