Searched defs:channelMask (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/base/media/java/android/media/
H A DAudioDevicePortConfig.java29 AudioDevicePortConfig(AudioDevicePort devicePort, int samplingRate, int channelMask, argument
31 super((AudioPort)devicePort, samplingRate, channelMask, format, gain);
35 this(config.port(), config.samplingRate(), config.channelMask(), config.format(),
H A DAudioMixPortConfig.java29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, argument
31 super((AudioPort)mixPort, samplingRate, channelMask, format, gain);
H A DAudioGainConfig.java35 AudioGainConfig(int index, AudioGain gain, int mode, int channelMask, argument
40 mChannelMask = channelMask;
65 public int channelMask() { method in class:AudioGainConfig
71 * channelMask() from LSB to MSB
H A DAudioMixPort.java45 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, argument
47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain);
H A DAudioPortConfig.java48 AudioPortConfig(AudioPort port, int samplingRate, int channelMask, int format, argument
52 mChannelMask = channelMask;
75 public int channelMask() { method in class:AudioPortConfig
H A DAudioDevicePort.java76 public AudioDevicePortConfig buildConfig(int samplingRate, int channelMask, int format, argument
78 return new AudioDevicePortConfig(this, samplingRate, channelMask, format, gain);
H A DAudioGain.java72 AudioGain(int index, int mode, int channelMask, argument
77 mChannelMask = channelMask;
97 public int channelMask() { method in class:AudioGain
149 * @param channelMask: channels of which the gain should be modified.
154 public AudioGainConfig buildConfig(int mode, int channelMask, argument
157 return new AudioGainConfig(mIndex, this, mode, channelMask, values, rampDurationMs);
H A DAudioPort.java176 * @param channelMask The desired channel mask. AudioFormat.CHANNEL_OUT_DEFAULT if no change
182 public AudioPortConfig buildConfig(int samplingRate, int channelMask, int format, argument
184 return new AudioPortConfig(this, samplingRate, channelMask, format, gain);
/frameworks/av/media/libnbaio/
H A DAudioStreamInSource.cpp51 audio_channel_mask_t channelMask; local
52 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat);
55 audio_channel_count_from_in_mask(channelMask), streamFormat);
H A DAudioStreamOutSink.cpp48 audio_channel_mask_t channelMask; local
49 result = mStream->getAudioProperties(&sampleRate, &channelMask, &streamFormat);
52 audio_channel_count_from_out_mask(channelMask), streamFormat);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioSession.h38 audio_channel_mask_t channelMask,
51 audio_channel_mask_t channelMask() const { return mConfig.channel_mask; } function in class:android::AudioSession
H A DAudioPort.h87 audio_channel_mask_t channelMask,
90 return mProfiles.checkExactProfile(samplingRate, channelMask, format);
96 audio_channel_mask_t &channelMask,
99 return mProfiles.checkCompatibleProfile(samplingRate, channelMask, format, mType, mRole);
107 audio_channel_mask_t &channelMask,
146 void pickChannelMask(audio_channel_mask_t &channelMask, const ChannelsVector &channelMasks) const;
86 checkExactAudioProfile(uint32_t samplingRate, audio_channel_mask_t channelMask, audio_format_t format) const argument
95 checkCompatibleAudioProfile(uint32_t &samplingRate, audio_channel_mask_t &channelMask, audio_format_t &format) const argument
H A DSerializer.h41 static const char channelMask[]; member in struct:android::AudioGainTraits::Attributes
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DIOProfile.cpp36 audio_channel_mask_t channelMask,
59 (isPlaybackThread && (samplingRate == 0 || !audio_is_output_channel(channelMask))) ||
60 (isRecordThread && (!audio_is_input_channel(channelMask)))) {
65 audio_channel_mask_t myUpdatedChannelMask = channelMask;
74 if (checkExactAudioProfile(samplingRate, channelMask, format) != NO_ERROR) {
30 isCompatibleProfile(audio_devices_t device, const String8& address, uint32_t samplingRate, uint32_t *updatedSamplingRate, audio_format_t format, audio_format_t *updatedFormat, audio_channel_mask_t channelMask, audio_channel_mask_t *updatedChannelMask, uint32_t flags) const argument
H A DAudioProfile.cpp31 status_t AudioProfile::checkExact(uint32_t samplingRate, audio_channel_mask_t channelMask, argument
35 supportsChannels(channelMask) &&
98 status_t AudioProfile::checkCompatibleChannelMask(audio_channel_mask_t channelMask, argument
104 updatedChannelMask = channelMask;
108 const bool isIndex = audio_channel_mask_get_representation(channelMask)
113 if (supported == channelMask) {
115 updatedChannelMask = channelMask;
142 audio_channel_mask_get_bits(channelMask)
148 audio_channel_mask_get_bits(channelMask) & equivalentBits);
151 (1 << audio_channel_count_from_in_mask(channelMask))
228 checkExactProfile(uint32_t samplingRate, audio_channel_mask_t channelMask, audio_format_t format) const argument
245 checkCompatibleProfile(uint32_t &samplingRate, audio_channel_mask_t &channelMask, audio_format_t &format, audio_port_type_t portType, audio_port_role_t portRole) const argument
[all...]
H A DAudioSession.cpp35 audio_channel_mask_t channelMask,
42 mConfig({ .format = format, .sample_rate = sampleRate, .channel_mask = channelMask}),
109 other->channelMask() == mConfig.channel_mask &&
31 AudioSession(audio_session_t session, audio_source_t inputSource, audio_format_t format, uint32_t sampleRate, audio_channel_mask_t channelMask, audio_input_flags_t flags, uid_t uid, bool isSoundTrigger, AudioMix* policyMix, AudioPolicyClientInterface *clientInterface) argument
H A DAudioPort.cpp300 audio_channel_mask_t &channelMask,
305 channelMask = AUDIO_CHANNEL_NONE;
333 channelMask = pickedChannelMask;
340 samplingRate, channelMask, format);
299 pickAudioProfile(uint32_t &samplingRate, audio_channel_mask_t &channelMask, audio_format_t &format) const argument
/frameworks/base/core/jni/
H A Dandroid_media_AudioFormat.h124 static inline audio_channel_mask_t outChannelMaskToNative(int channelMask) argument
126 switch (channelMask) {
131 return (audio_channel_mask_t)(channelMask>>2);
145 static inline audio_channel_mask_t inChannelMaskToNative(int channelMask) argument
147 return (audio_channel_mask_t)channelMask;
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamRecord.cpp61 audio_channel_mask_t channelMask = audio_channel_in_mask_from_count(samplesPerFrame); local
111 channelMask,
H A DAudioStreamTrack.cpp65 audio_channel_mask_t channelMask = audio_channel_out_mask_from_count(samplesPerFrame); local
126 channelMask,
/frameworks/av/media/libaudioprocessing/tests/
H A Dtest-mixer.cpp248 uint32_t channelMask = audio_channel_out_mask_from_count(providers[i].getNumChannels()); local
249 int32_t name = mixer->getTrackName(channelMask,
275 (void *)(uintptr_t)channelMask);
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp129 int32_t numChannels, channelMask; local
133 if(!format->findInt32(kKeyChannelMask, &channelMask)) {
137 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER;
183 offloadInfo.channel_mask = channelMask;
192 mSampleRate, numChannels, channelMask, audioFormat,
233 audio_channel_mask_t audioMask = channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER ?
234 audio_channel_out_mask_from_count(numChannels) : channelMask;
/frameworks/av/services/audioflinger/
H A DTrackBase.h61 audio_channel_mask_t channelMask,
110 audio_channel_mask_t channelMask() const { return mChannelMask; } function in class:TrackBase
/frameworks/base/cmds/bootanimation/
H A Daudioplay.cpp144 // Determine channelMask from num_channels
145 SLuint32 channelMask; local
148 channelMask = SL_SPEAKER_FRONT_CENTER;
151 channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
155 channelMask = 0;
164 channelMask,
/frameworks/wilhelm/src/android/
H A DAudioRecorder_to_android.cpp668 df_pcm->channelMask,
672 // note that df_pcm->channelMask has already been validated during object creation.
673 audio_channel_mask_t channelMask = sles_to_audio_input_channel_mask(df_pcm->channelMask); local
677 if (channelMask == AUDIO_CHANNEL_INVALID
678 || audio_channel_mask_get_representation(channelMask)
680 channelMask = audio_channel_in_mask_from_count(df_pcm->numChannels);
683 "channel count of %d)", df_pcm->channelMask, channelMask,
686 SL_LOGV("SLES channel mask %#x converted to Android mask %#x", df_pcm->channelMask, channelMas
[all...]

Completed in 211 milliseconds

123