[misc] Add media_quality struct for storing sample rate, bps and channels

This commit is contained in:
ejurgensen
2019-02-08 18:58:46 +01:00
parent ad77a42dbb
commit 462d787fab
2 changed files with 17 additions and 2 deletions

View File

@@ -1039,6 +1039,11 @@ murmur_hash64(const void *key, int len, uint32_t seed)
# error Platform not supported
#endif
bool
quality_is_equal(struct media_quality *a, struct media_quality *b)
{
return (a->sample_rate == b->sample_rate && a->bits_per_sample == b->bits_per_sample && a->channels == b->channels);
}
bool
peer_address_is_trusted(const char *addr)