diff --git a/src/AudioFormat.hxx b/src/AudioFormat.hxx index 77e710f55..4de0ad1c7 100644 --- a/src/AudioFormat.hxx +++ b/src/AudioFormat.hxx @@ -133,6 +133,11 @@ struct AudioFormat { return result; } + gcc_pure + bool MatchMask(AudioFormat mask) const noexcept { + return WithMask(mask) == *this; + } + /** * Returns the size of each (mono) sample in bytes. */