AudioFormat: add method MatchMask()
This commit is contained in:
parent
20199e770c
commit
967d81b782
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user