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

12

/frameworks/wilhelm/src/android/
H A Dandroid_sles_conversions.h66 SLuint32 channelMask) {
73 SLuint32 channelMask) {
89 uint32_t channelMask; local
65 sles_to_android_channelMaskIn(SLuint32 nbChannels, SLuint32 channelMask) argument
72 sles_to_android_channelMaskOut(SLuint32 nbChannels, SLuint32 channelMask) argument
/frameworks/av/media/libnbaio/
H A DAudioStreamInSource.cpp48 audio_channel_mask_t channelMask = local
50 mFormat = Format_from_SR_C(sampleRate, popcount(channelMask));
H A DAudioStreamOutSink.cpp45 audio_channel_mask_t channelMask = local
47 mFormat = Format_from_SR_C(sampleRate, popcount(channelMask));
/frameworks/av/services/audioflinger/
H A DRecordTracks.h29 audio_channel_mask_t channelMask,
H A DTrackBase.h44 audio_channel_mask_t channelMask,
77 audio_channel_mask_t channelMask() const { return mChannelMask; } function in class:TrackBase
H A DPlaybackTracks.h30 audio_channel_mask_t channelMask,
166 audio_channel_mask_t channelMask,
210 audio_channel_mask_t channelMask,
260 audio_channel_mask_t channelMask,
H A DAudioMixer.h102 int getTrackName(audio_channel_mask_t channelMask, int sessionId);
178 audio_channel_mask_t channelMask; member in struct:android::AudioMixer::track_t
H A DTracks.cpp67 audio_channel_mask_t channelMask,
81 mChannelMask(channelMask),
82 mChannelCount(popcount(channelMask)),
325 audio_channel_mask_t channelMask,
331 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, sharedBuffer,
359 mName = thread->getTrackName_l(channelMask, sessionId);
978 audio_channel_mask_t channelMask,
987 thread, client, streamType, sampleRate, format, channelMask, frameCount,
997 audio_channel_mask_t channelMask,
1002 : Track(thread, client, streamType, sampleRate, format, channelMask,
62 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int clientUid, bool isOut) argument
319 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid, IAudioFlinger::track_flags_t flags) argument
972 create( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid) argument
991 TimedTrack( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, int uid) argument
1490 OutputTrack( PlaybackThread *playbackThread, DuplicatingThread *sourceThread, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, int uid) argument
1752 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, int sessionId, int uid) argument
[all...]
H A DThreads.h126 audio_channel_mask_t channelMask() const { return mChannelMask; } function in class:ThreadBase
421 audio_channel_mask_t channelMask,
508 virtual int getTrackName_l(audio_channel_mask_t channelMask, int sessionId) = 0;
662 virtual int getTrackName_l(audio_channel_mask_t channelMask, int sessionId);
714 virtual int getTrackName_l(audio_channel_mask_t channelMask, int sessionId);
851 audio_channel_mask_t channelMask,
880 audio_channel_mask_t channelMask,
/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/include/media/
H A DAudioSystem.h116 audio_channel_mask_t channelMask, size_t* buffSize);
158 : samplingRate(0), format(AUDIO_FORMAT_DEFAULT), channelMask(0), frameCount(0), latency(0) {}
162 audio_channel_mask_t channelMask; member in class:android::AudioSystem::OutputDescriptor
199 audio_channel_mask_t channelMask = AUDIO_CHANNEL_OUT_STEREO,
212 audio_channel_mask_t channelMask = AUDIO_CHANNEL_IN_MONO,
H A DIAudioPolicyService.h55 audio_channel_mask_t channelMask = 0,
68 audio_channel_mask_t channelMask = 0,
H A DAudioRecord.h107 audio_channel_mask_t channelMask);
133 * channelMask: Channel mask, such that audio_is_input_channel(channelMask) is true.
153 audio_channel_mask_t channelMask,
185 audio_channel_mask_t channelMask,
H A DIAudioFlinger.h66 audio_channel_mask_t channelMask,
84 audio_channel_mask_t channelMask,
143 audio_channel_mask_t channelMask) const = 0;
H A DAudioTrack.h161 * channelMask: Channel mask.
207 audio_channel_mask_t channelMask,
230 * - BAD_VALUE: invalid parameter (channelMask, format, sampleRate...)
243 audio_channel_mask_t channelMask,
276 * channelCount is determined from channelMask, and bit depth comes from format.
/frameworks/av/media/libmedia/
H A DIAudioFlinger.cpp91 audio_channel_mask_t channelMask,
108 data.writeInt32(channelMask);
152 audio_channel_mask_t channelMask,
165 data.writeInt32(channelMask);
373 audio_channel_mask_t channelMask) const
379 data.writeInt32(channelMask);
397 audio_channel_mask_t channelMask = pChannelMask != NULL ? local
405 data.writeInt32(channelMask);
423 channelMask = (audio_channel_mask_t)reply.readInt32();
424 if (pChannelMask != NULL) *pChannelMask = channelMask;
87 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, track_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, String8& name, int clientUid, status_t *status) argument
148 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, track_flags_t *flags, pid_t tid, int *sessionId, status_t *status) argument
478 audio_channel_mask_t channelMask = pChannelMask != NULL ? local
756 audio_channel_mask_t channelMask = data.readInt32(); local
793 audio_channel_mask_t channelMask = data.readInt32(); local
918 audio_channel_mask_t channelMask = data.readInt32(); local
928 audio_channel_mask_t channelMask = (audio_channel_mask_t)data.readInt32(); local
981 audio_channel_mask_t channelMask = (audio_channel_mask_t)data.readInt32(); local
[all...]
H A DIAudioFlingerClient.cpp57 data.writeInt32(desc->channelMask);
87 desc.channelMask = (audio_channel_mask_t) data.readInt32();
H A DAudioRecord.cpp38 audio_channel_mask_t channelMask)
48 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size);
55 ALOGE("Unsupported configuration: sampleRate %u, format %d, channelMask %#x",
56 sampleRate, format, channelMask);
64 uint32_t channelCount = popcount(channelMask);
83 audio_channel_mask_t channelMask,
96 mStatus = set(inputSource, sampleRate, format, channelMask, frameCount, cbf, user,
126 audio_channel_mask_t channelMask,
166 ALOGV("set(): sampleRate %u, channelMask %#x, frameCount %u", sampleRate, channelMask,
34 getMinFrameCount( size_t* frameCount, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask) argument
79 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, callback_t cbf, void* user, int notificationFrames, int sessionId, transfer_type transferType, audio_input_flags_t flags) argument
122 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCountInt, callback_t cbf, void* user, int notificationFrames, bool threadCanCallJava, int sessionId, transfer_type transferType, audio_input_flags_t flags) argument
[all...]
H A DAudioSystem.cpp339 audio_channel_mask_t channelMask, size_t* buffSize)
345 || (channelMask != gPrevInChannelMask)) {
351 inBuffSize = af->getInputBufferSize(sampleRate, format, channelMask);
356 gPrevInChannelMask = channelMask;
460 outputDesc->samplingRate, outputDesc->format, outputDesc->channelMask,
485 desc->channelMask, desc->frameCount, desc->latency);
602 audio_channel_mask_t channelMask,
608 return aps->getOutput(stream, samplingRate, format, channelMask, flags, offloadInfo);
639 audio_channel_mask_t channelMask,
644 return aps->getInput(inputSource, samplingRate, format, channelMask, sessionI
338 getInputBufferSize(uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t* buffSize) argument
599 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
636 getInput(audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, int sessionId) argument
[all...]
H A DAudioTrack.cpp54 // audio_channel_mask_t channelMask
96 audio_channel_mask_t channelMask,
111 mStatus = set(streamType, sampleRate, format, channelMask,
121 audio_channel_mask_t channelMask,
136 mStatus = set(streamType, sampleRate, format, channelMask,
165 audio_channel_mask_t channelMask,
253 if (channelMask == 0) {
254 channelMask = AUDIO_CHANNEL_OUT_STEREO;
285 if (!audio_is_output_channel(channelMask)) {
286 ALOGE("Invalid channel mask %#x", channelMask);
92 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid) argument
117 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const sp<IMemory>& sharedBuffer, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid) argument
161 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCountInt, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid) argument
[all...]
H A DIAudioPolicyService.cpp129 audio_channel_mask_t channelMask,
138 data.writeInt32(channelMask);
188 audio_channel_mask_t channelMask,
196 data.writeInt32(channelMask);
458 audio_channel_mask_t channelMask = data.readInt32(); local
469 channelMask,
510 audio_channel_mask_t channelMask = data.readInt32(); local
515 channelMask,
125 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
184 getInput( audio_source_t inputSource, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, int audioSession) argument
/frameworks/av/media/libstagefright/
H A DUtils.cpp113 int32_t channelMask; local
114 if (meta->findInt32(kKeyChannelMask, &channelMask)) {
115 msg->setInt32("channel-mask", channelMask);
413 int32_t channelMask; local
414 if (msg->findInt32("channel-mask", &channelMask)) {
415 meta->setInt32(kKeyChannelMask, channelMask);
484 int32_t channelMask = 0; local
493 if (meta->findInt32(kKeyChannelMask, &channelMask)) {
494 param.addInt(String8(AUDIO_OFFLOAD_CODEC_NUM_CHANNEL), channelMask); local
508 channelMask, delaySample
[all...]
H A DAudioPlayer.cpp122 int32_t numChannels, channelMask; local
126 if(!format->findInt32(kKeyChannelMask, &channelMask)) {
130 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER;
166 offloadInfo.channel_mask = channelMask;
175 mSampleRate, numChannels, channelMask, audioFormat,
216 audio_channel_mask_t audioMask = channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER ?
217 audio_channel_out_mask_from_count(numChannels) : channelMask;
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp392 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
424 if (channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER) {
427 channelMask = AUDIO_CHANNEL_OUT_MONO;
430 channelMask = AUDIO_CHANNEL_OUT_STEREO;
443 channelMask,
453 channelMask,
391 open( uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, audio_format_t format, int bufferCount, AudioCallback cb, void *cookie, audio_output_flags_t flags, const audio_offload_info_t *offloadInfo) argument
/frameworks/base/core/jni/
H A Dandroid_media_AudioRecord.cpp161 jint source, jint sampleRateInHertz, jint channelMask,
167 // sampleRateInHertz, audioFormat, channelMask, buffSizeInBytes);
169 if (!audio_is_input_channel(channelMask)) {
170 ALOGE("Error creating AudioRecord: channel mask %#x is not valid.", channelMask);
173 uint32_t nbChannels = popcount(channelMask);
232 channelMask,
160 android_media_AudioRecord_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint source, jint sampleRateInHertz, jint channelMask, jint audioFormat, jint buffSizeInBytes, jintArray jSession) argument

Completed in 348 milliseconds

12