Searched refs:channelMask (Results 1 - 25 of 85) sorted by relevance

1234

/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 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 DAudioMixPortConfig.java29 AudioMixPortConfig(AudioMixPort mixPort, int samplingRate, int channelMask, int format, argument
31 super((AudioPort)mixPort, 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 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 DAudioMixPort.java45 public AudioMixPortConfig buildConfig(int samplingRate, int channelMask, int format, argument
47 return new AudioMixPortConfig(this, samplingRate, channelMask, format, gain);
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 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);
H A DAudioFormat.java46 * <li><a href="#channelMask">channel masks</a>
124 * <h4 id="channelMask">Channel mask</h4>
201 * channel association are given by the <a href="#channelMask">channel mask</a>,
591 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { argument
594 mChannelMask = channelMask;
644 * See the section on <a href="#channelMask">channel masks</a> for more information about
659 * See the section on <a href="#channelMask">channel masks</a> for more information about
794 * @param channelMask describes the configuration of the audio channels.
795 * <p> For output, the channelMask can be an OR-ed combination of
819 public @NonNull Builder setChannelMask(int channelMask) { argument
[all...]
/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, 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...]
/frameworks/base/core/jni/
H A Dandroid_media_AudioFormat.h118 static inline audio_channel_mask_t outChannelMaskToNative(int channelMask) argument
120 switch (channelMask) {
125 return (audio_channel_mask_t)(channelMask>>2);
139 static inline audio_channel_mask_t inChannelMaskToNative(int channelMask) argument
141 return (audio_channel_mask_t)channelMask;
/frameworks/base/media/java/android/media/tv/
H A DITvInputHardware.aidl58 * @param channelMask desired channel mask. Use default when it's
62 void overrideAudioSink(int audioType, String audioAddress, int samplingRate, int channelMask,
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
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 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 DIOProfile.h52 audio_channel_mask_t channelMask,
/frameworks/av/media/libnbaio/
H A DAudioStreamInSource.cpp47 audio_channel_mask_t channelMask = local
50 audio_channel_count_from_in_mask(channelMask), streamFormat);
H A DAudioStreamOutSink.cpp44 audio_channel_mask_t channelMask = local
47 audio_channel_count_from_out_mask(channelMask), streamFormat);
/frameworks/wilhelm/src/android/
H A DAudioRecorder_to_android.cpp441 df_pcm->channelMask,
445 // note that df_pcm->channelMask has already been validated during object creation.
446 audio_channel_mask_t channelMask = sles_to_audio_input_channel_mask(df_pcm->channelMask); local
450 if (channelMask == AUDIO_CHANNEL_INVALID
451 || audio_channel_mask_get_representation(channelMask)
453 channelMask = audio_channel_in_mask_from_count(df_pcm->numChannels);
456 "channel count of %d)", df_pcm->channelMask, channelMask,
459 SL_LOGV("SLES channel mask %#x converted to Android mask %#x", df_pcm->channelMask, channelMas
[all...]
/frameworks/wilhelm/tests/sandbox/
H A Dsrcsink.c48 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
161 format_pcm.channelMask = 0;
167 format_pcm.channelMask = SL_SPEAKER_FRONT_CENTER;
172 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT |
179 format_pcm.channelMask = 0;
185 format_pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
/frameworks/av/services/audioflinger/
H A DRecordTracks.h29 audio_channel_mask_t channelMask,
97 audio_channel_mask_t channelMask,
H A DAudioFlinger.h105 audio_channel_mask_t channelMask,
120 audio_channel_mask_t channelMask,
164 audio_channel_mask_t channelMask) const;
349 static inline bool isValidPcmSinkChannelMask(audio_channel_mask_t channelMask) { argument
350 switch (audio_channel_mask_get_representation(channelMask)) {
354 channelCount = audio_channel_count_from_out_mask(channelMask);
360 // check that channelMask is the "canonical" one we expect for the channelCount.
361 return channelMask == audio_channel_out_mask_from_count(channelCount);
365 const uint32_t channelCount = audio_channel_count_from_out_mask(channelMask);
H A DTrackBase.h61 audio_channel_mask_t channelMask,
105 audio_channel_mask_t channelMask() const { return mChannelMask; } function in class:TrackBase
/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/media/libmedia/
H A DAudioRecord.cpp40 audio_channel_mask_t channelMask)
47 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size);
50 "channelMask %#x; status %d", sampleRate, format, channelMask, status);
56 if ((*frameCount = (size * 2) / (audio_channel_count_from_in_mask(channelMask) *
58 ALOGE("Unsupported configuration: sampleRate %u, format %#x, channelMask %#x",
59 sampleRate, format, channelMask);
79 audio_channel_mask_t channelMask,
100 mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user,
137 audio_channel_mask_t channelMask,
36 getMinFrameCount( size_t* frameCount, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask) argument
75 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, audio_session_t sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
133 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, bool threadCanCallJava, audio_session_t sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
[all...]

Completed in 263 milliseconds

1234