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

12

/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);
H A DAudioFormat.java43 * <li><a href="#channelMask">channel masks</a>
121 * <h4 id="channelMask">Channel mask</h4>
198 * channel association are given by the <a href="#channelMask">channel mask</a>,
533 private AudioFormat(int encoding, int sampleRate, int channelMask, int channelIndexMask) { argument
536 mChannelMask = channelMask;
589 * See the section on <a href="#channelMask">channel masks</a> for more information about
604 * See the section on <a href="#channelMask">channel masks</a> for more information about
736 * @param channelMask describes the configuration of the audio channels.
737 * <p> For output, the channelMask can be an OR-ed combination of
761 public @NonNull Builder setChannelMask(int channelMask) { argument
[all...]
/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/av/services/audiopolicy/common/managerdefinitions/src/
H A DIOProfile.cpp44 audio_channel_mask_t channelMask,
87 if (isPlaybackThread && (!audio_is_output_channel(channelMask) ||
88 checkExactChannelMask(channelMask) != NO_ERROR)) {
91 audio_channel_mask_t myUpdatedChannelMask = channelMask;
92 if (isRecordThread && (!audio_is_input_channel(channelMask) ||
93 checkCompatibleChannelMask(channelMask, &myUpdatedChannelMask) != NO_ERROR)) {
38 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 DAudioPort.cpp223 audio_channel_mask_t channelMask = local
227 if (channelMask == 0) { // if not found, check the channel index table
228 channelMask = (audio_channel_mask_t)
233 if (channelMask != 0) {
234 ALOGV("loadInChannels() adding channelMask %#x", channelMask);
235 mChannelMasks.add(channelMask);
255 audio_channel_mask_t channelMask = local
259 if (channelMask == 0) { // if not found, check the channel index table
260 channelMask
434 checkCompatibleChannelMask(audio_channel_mask_t channelMask, audio_channel_mask_t *updatedChannelMask) const argument
619 audio_channel_mask_t channelMask = AUDIO_CHANNEL_NONE; local
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_AudioFormat.h113 static inline audio_channel_mask_t outChannelMaskToNative(int channelMask) argument
115 switch (channelMask) {
120 return (audio_channel_mask_t)(channelMask>>2);
134 static inline audio_channel_mask_t inChannelMaskToNative(int channelMask) argument
136 return (audio_channel_mask_t)channelMask;
/frameworks/av/services/audioflinger/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.cpp125 int32_t numChannels, channelMask; local
129 if(!format->findInt32(kKeyChannelMask, &channelMask)) {
133 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER;
175 offloadInfo.channel_mask = channelMask;
184 mSampleRate, numChannels, channelMask, audioFormat,
225 audio_channel_mask_t audioMask = channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER ?
226 audio_channel_out_mask_from_count(numChannels) : channelMask;
H A DUtils.cpp156 int32_t channelMask; local
157 if (meta->findInt32(kKeyChannelMask, &channelMask)) {
158 msg->setInt32("channel-mask", channelMask);
632 int32_t channelMask; local
633 if (msg->findInt32("channel-mask", &channelMask)) {
634 meta->setInt32(kKeyChannelMask, channelMask);
725 int32_t channelMask = 0; local
734 if (meta->findInt32(kKeyChannelMask, &channelMask)) {
735 param.addInt(String8(AUDIO_OFFLOAD_CODEC_NUM_CHANNEL), channelMask); local
749 channelMask, delaySample
[all...]
/frameworks/av/services/audioflinger/
H A DTrackBase.h62 audio_channel_mask_t channelMask,
107 audio_channel_mask_t channelMask() const { return mChannelMask; } function in class:TrackBase
H A DAudioMixer.h114 // The failure could be because of an invalid channelMask or format, or that
116 int getTrackName(audio_channel_mask_t channelMask,
198 audio_channel_mask_t channelMask; member in struct:android::AudioMixer::track_t
H A DAudioFlinger.h114 audio_channel_mask_t channelMask,
128 audio_channel_mask_t channelMask,
170 audio_channel_mask_t channelMask) const;
354 static inline bool isValidPcmSinkChannelMask(audio_channel_mask_t channelMask) { argument
355 switch (audio_channel_mask_get_representation(channelMask)) {
359 channelCount = audio_channel_count_from_out_mask(channelMask);
365 // check that channelMask is the "canonical" one we expect for the channelCount.
366 return channelMask == audio_channel_out_mask_from_count(channelCount);
370 const uint32_t channelCount = audio_channel_count_from_out_mask(channelMask);
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImplLegacy.cpp134 audio_channel_mask_t channelMask,
147 format, channelMask, flags, offloadInfo);
240 audio_channel_mask_t channelMask,
269 format, channelMask, (audio_in_acoustics_t) 0);
572 audio_channel_mask_t channelMask,
584 *output = getOutput(*stream, samplingRate, format, channelMask,
131 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
234 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid __unused, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags __unused, audio_port_handle_t selectedDeviceId __unused) argument
565 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session __unused, audio_stream_type_t *stream, uid_t uid __unused, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId __unused, const audio_offload_info_t *offloadInfo) argument
H A DAudioPolicyInterfaceImpl.cpp133 audio_channel_mask_t channelMask,
146 format, channelMask, flags, offloadInfo);
156 audio_channel_mask_t channelMask,
176 format, channelMask, flags, selectedDeviceId, offloadInfo);
268 audio_channel_mask_t channelMask,
300 samplingRate, format, channelMask,
130 getOutput(audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
149 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
262 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
/frameworks/wilhelm/include/SLES/
H A DOpenSLES_Android.h52 SLuint32 channelMask; member in struct:SLAndroidDataFormat_PCM_EX_
/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,
99 mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user,
136 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, int sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
132 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, int sessionId, transfer_type transferType, audio_input_flags_t flags, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
[all...]
H A DIAudioPolicyService.cpp149 audio_channel_mask_t channelMask,
158 data.writeInt32(channelMask);
178 audio_channel_mask_t channelMask,
215 data.writeInt32(channelMask);
284 audio_channel_mask_t channelMask,
303 data.writeInt32(channelMask);
837 audio_channel_mask_t channelMask = data.readInt32(); local
848 channelMask,
871 audio_channel_mask_t channelMask = data.readInt32(); local
883 samplingRate, format, channelMask,
145 getOutput( audio_stream_type_t stream, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
171 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_output_flags_t flags, audio_port_handle_t selectedDeviceId, const audio_offload_info_t *offloadInfo) argument
278 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, uid_t uid, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId) argument
932 audio_channel_mask_t channelMask = data.readInt32(); local
[all...]

Completed in 609 milliseconds

12