42 uint32_t sample_rate = 0;
43 uint16_t num_channels = 0;
44 hi::speaker_mapping speaker_mapping = hi::speaker_mapping::none;
55 uint16_t num_channels,
56 hi::speaker_mapping speaker_mapping = hi::speaker_mapping::none) noexcept :
57 format(format), sample_rate(sample_rate), num_channels(num_channels), speaker_mapping(speaker_mapping)
61 [[nodiscard]]
constexpr bool empty()
const noexcept
63 return format.empty();
66 constexpr explicit operator bool()
const noexcept
71 [[nodiscard]]
constexpr bool holds_invariant()
const noexcept
73 if (popcount(speaker_mapping) != 0 and num_channels != popcount(speaker_mapping)) {