Commit 967d81b7 authored by Max Kellermann's avatar Max Kellermann

AudioFormat: add method MatchMask()

parent 20199e77
...@@ -133,6 +133,11 @@ struct AudioFormat { ...@@ -133,6 +133,11 @@ struct AudioFormat {
return result; return result;
} }
gcc_pure
bool MatchMask(AudioFormat mask) const noexcept {
return WithMask(mask) == *this;
}
/** /**
* Returns the size of each (mono) sample in bytes. * Returns the size of each (mono) sample in bytes.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment