AudioFormat: add method MatchMask()

This commit is contained in:
Max Kellermann 2017-11-10 23:05:48 +01:00
parent 20199e770c
commit 967d81b782

View File

@ -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.
*/