struct ChannelAttributes

Defined at line 16 of file ../../src/media/audio/audio_core/channel_attributes.h

Public Members

uint32_t min_frequency
uint32_t max_frequency
static const uint32_t kAudibleUltrasonicBoundaryHz

Public Methods

void ChannelAttributes ()

Defined at line 24 of file ../../src/media/audio/audio_core/channel_attributes.h

void ChannelAttributes (uint32_t min_freq, uint32_t max_freq)

Defined at line 25 of file ../../src/media/audio/audio_core/channel_attributes.h

bool IncludesAudible ()

Return true if this channel covers ANY portion of the audible range.

Must include more than just the boundary values.

Defined at line 32 of file ../../src/media/audio/audio_core/channel_attributes.h

bool IncludesUltrasonic ()

Return true if this channel covers ANY portion of the ultrasonic range

Must include more than just the boundary value.

Defined at line 38 of file ../../src/media/audio/audio_core/channel_attributes.h

bool IncludesAudible (std::vector<ChannelAttributes> & channels)

Static methods that operate over a vector of ChannelAttributes, representing a channel set

Supporting audible requires a single channel to support ANY non-empty frequency range

within these bounds (it need not cover the ENTIRE range).

Defined at line 47 of file ../../src/media/audio/audio_core/channel_attributes.h

bool IncludesUltrasonic (std::vector<ChannelAttributes> & channels)

Supporting ultrasonic requires a channel to support ANY non-empty frequency range within these

bounds (it need not cover the ENTIRE range).

This simplifying assumption is valid for currently-known audio devices, because if they touch

the ultrasonic range, they cover the entire frequency range of commonly-used ultrasonic

content. Ultimately, we will need the device to cover this range (not just a single frequency)

for ultrasonic content to be effective.

Defined at line 58 of file ../../src/media/audio/audio_core/channel_attributes.h