Home
last modified time | relevance | path

Searched refs:channelMask (Results 1 – 21 of 21) sorted by relevance

/system/media/audio_utils/
DBalance.cpp21 void Balance::setChannelMask(audio_channel_mask_t channelMask) in setChannelMask() argument
24 channelMask = static_cast<audio_channel_mask_t>(channelMask & ~AUDIO_CHANNEL_HAPTIC_ALL); in setChannelMask()
25 if (!audio_is_output_channel(channelMask) // invalid mask in setChannelMask()
26 || mChannelMask == channelMask) { // no need to do anything in setChannelMask()
30 mChannelMask = channelMask; in setChannelMask()
31 mChannelCount = audio_channel_count_from_out_mask(channelMask); in setChannelMask()
58 for (unsigned i = 0, channel = channelMask; channel != 0; ++i) { in setChannelMask()
/system/media/audio_utils/benchmarks/
Dchannelmix_benchmark.cpp150 const audio_channel_mask_t channelMask = kChannelPositionMasks[state.range(0)]; in BenchmarkChannelMix() local
152 ChannelMix<OUTPUT_CHANNEL_MASK> channelMix(channelMask); in BenchmarkChannelMix()
155 size_t inChannels = audio_channel_count_from_out_mask(channelMask); in BenchmarkChannelMix()
160 std::minstd_rand gen(channelMask); in BenchmarkChannelMix()
176 state.SetLabel(audio_channel_out_mask_to_string(channelMask)); in BenchmarkChannelMix()
/system/hardware/interfaces/media/aidl_api/android.media.audio.common.types/1/android/media/audio/common/
DAudioGainConfig.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
DAudioConfigBase.aidl39 android.media.audio.common.AudioChannelLayout channelMask;
DAudioGain.aidl39 android.media.audio.common.AudioChannelLayout channelMask;
DAudioPortConfig.aidl41 @nullable android.media.audio.common.AudioChannelLayout channelMask;
/system/hardware/interfaces/media/aidl_api/android.media.audio.common.types/2/android/media/audio/common/
DAudioGainConfig.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
DAudioConfigBase.aidl39 android.media.audio.common.AudioChannelLayout channelMask;
DAudioGain.aidl39 android.media.audio.common.AudioChannelLayout channelMask;
DAudioPortConfig.aidl41 @nullable android.media.audio.common.AudioChannelLayout channelMask;
/system/hardware/interfaces/media/aidl_api/android.media.audio.common.types/current/android/media/audio/common/
DAudioGainConfig.aidl40 android.media.audio.common.AudioChannelLayout channelMask;
DAudioConfigBase.aidl39 android.media.audio.common.AudioChannelLayout channelMask;
DAudioGain.aidl39 android.media.audio.common.AudioChannelLayout channelMask;
DAudioPortConfig.aidl41 @nullable android.media.audio.common.AudioChannelLayout channelMask;
/system/hardware/interfaces/media/aidl/android/media/audio/common/
DAudioGainConfig.aidl35 AudioChannelLayout channelMask;
DAudioConfigBase.aidl31 AudioChannelLayout channelMask;
DAudioGain.aidl33 AudioChannelLayout channelMask;
DAudioPortConfig.aidl48 @nullable AudioChannelLayout channelMask;
/system/media/audio_utils/tests/
Dbalance_tests.cpp84 for (auto channelMask : { in TEST()
88 balance.setChannelMask((audio_channel_mask_t)channelMask); in TEST()
/system/media/audio_utils/include/audio_utils/
DBalance.h90 void setChannelMask(audio_channel_mask_t channelMask);
/system/media/audio/include/system/
Daudio.h351 static inline CONSTEXPR bool audio_is_channel_mask_spatialized(audio_channel_mask_t channelMask) { in audio_is_channel_mask_spatialized() argument
352 return audio_channel_mask_get_representation(channelMask) in audio_is_channel_mask_spatialized()
354 && ((channelMask & AUDIO_CHANNEL_OUT_QUAD) == AUDIO_CHANNEL_OUT_QUAD in audio_is_channel_mask_spatialized()
355 || (channelMask & AUDIO_CHANNEL_OUT_QUAD_SIDE) == AUDIO_CHANNEL_OUT_QUAD_SIDE); in audio_is_channel_mask_spatialized()
1770 static inline bool audio_channel_position_mask_is_out_canonical(audio_channel_mask_t channelMask) in audio_channel_position_mask_is_out_canonical() argument
1772 if (audio_channel_mask_get_representation(channelMask) in audio_channel_position_mask_is_out_canonical()
1777 (audio_channel_mask_t)(channelMask & ~AUDIO_CHANNEL_HAPTIC_ALL)); in audio_channel_position_mask_is_out_canonical()
1779 (audio_channel_mask_t)(channelMask & AUDIO_CHANNEL_HAPTIC_ALL)); in audio_channel_position_mask_is_out_canonical()
1780 return channelMask == (audio_channel_mask_t)( in audio_channel_position_mask_is_out_canonical()