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

12

/frameworks/wilhelm/src/android/
H A Dandroid_sles_conversions.h65 static inline int sles_to_android_channelMaskIn(SLuint32 nbChannels, SLuint32 channelMask) { argument
71 static inline int sles_to_android_channelMaskOut(SLuint32 nbChannels, SLuint32 channelMask) { argument
87 uint32_t channelMask; local
/frameworks/av/services/audioflinger/
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));
H A DAudioMixer.h94 int getTrackName(audio_channel_mask_t channelMask);
169 audio_channel_mask_t channelMask; member in struct:android::AudioMixer::track_t
H A DAudioFlinger.h94 uint32_t channelMask,
108 uint32_t channelMask,
383 uint32_t channelMask,
415 uint32_t channelMask() const { return mChannelMask; } function in class:android::AudioFlinger::ThreadBase::TrackBase
694 uint32_t channelMask,
816 uint32_t channelMask,
859 uint32_t channelMask,
908 uint32_t channelMask,
987 uint32_t channelMask,
1037 virtual int getTrackName_l(audio_channel_mask_t channelMask)
[all...]
H A DAudioMixer.cpp162 int AudioMixer::getTrackName(audio_channel_mask_t channelMask) argument
187 t->channelMask = AUDIO_CHANNEL_OUT_STEREO;
203 status_t status = initTrackDownmix(&mState.tracks[n], n, channelMask);
208 channelMask);
227 pTrack->channelMask = mask;
254 ALOGV("AudioMixer::prepareTrackForDownmix(%d) with mask 0x%x", trackName, pTrack->channelMask);
276 pDbp->mDownmixConfig.inputCfg.channels = pTrack->channelMask;
416 if (track.channelMask != mask) {
419 track.channelMask = mask;
/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;
H A Dconfigbq.c113 format_pcm.channelMask = 0;
/frameworks/av/include/media/
H A DAudioTrack.h138 * channelMask: Channel mask: see audio_channels_t.
157 int channelMask = 0,
169 int channelMask = 0,
189 int channelMask = 0,
213 int channelMask = 0,
245 * channelCount is determined from channelMask, and bit depth comes from format.
490 uint32_t channelMask,
H A DAudioRecord.h136 * channelMask: Channel mask: see audio_channels_t.
159 uint32_t channelMask = AUDIO_CHANNEL_IN_MONO,
185 uint32_t channelMask = AUDIO_CHANNEL_IN_MONO,
360 uint32_t channelMask,
H A DIAudioFlinger.h63 uint32_t channelMask,
77 uint32_t channelMask,
H A DMediaPlayerInterface.h100 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp90 uint32_t channelMask,
100 mStatus = set(inputSource, sampleRate, format, channelMask,
125 uint32_t channelMask,
135 ALOGV("set(): sampleRate %d, channelMask %d, frameCount %d",sampleRate, channelMask, frameCount);
160 if (!audio_is_input_channel(channelMask)) {
164 int channelCount = popcount(channelMask);
176 channelMask,
203 status = openRecord_l(sampleRate, format, channelMask,
219 mChannelMask = channelMask;
86 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, record_flags flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
121 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, record_flags flags, callback_t cbf, void* user, int notificationFrames, bool threadCanCallJava, int sessionId) argument
457 openRecord_l( uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, audio_io_handle_t input) argument
[all...]
H A DIAudioFlinger.cpp89 uint32_t channelMask,
105 data.writeInt32(channelMask);
138 uint32_t channelMask,
151 data.writeInt32(channelMask);
373 audio_channel_mask_t channelMask = pChannelMask ? *pChannelMask : (audio_channel_mask_t)0; local
381 data.writeInt32(channelMask);
393 channelMask = (audio_channel_mask_t)reply.readInt32();
394 if (pChannelMask) *pChannelMask = channelMask;
448 audio_channel_mask_t channelMask = pChannelMask ? *pChannelMask : (audio_channel_mask_t)0; local
455 data.writeInt32(channelMask);
84 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
133 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, track_flags_t flags, int *sessionId, status_t *status) argument
859 audio_channel_mask_t channelMask = (audio_channel_mask_t)data.readInt32(); local
906 audio_channel_mask_t channelMask = (audio_channel_mask_t)data.readInt32(); local
[all...]
H A DAudioTrack.cpp61 // audio_channel_mask_t channelMask
101 int channelMask,
113 mStatus = set(streamType, sampleRate, format, channelMask,
123 int channelMask,
134 mStatus = set((audio_stream_type_t)streamType, sampleRate, (audio_format_t)format, channelMask,
143 int channelMask,
155 mStatus = set(streamType, sampleRate, format, channelMask,
184 int channelMask,
222 if (channelMask == 0) {
223 channelMask
97 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, int channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
119 AudioTrack( int streamType, uint32_t sampleRate, int format, int channelMask, int frameCount, uint32_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
139 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, int channelMask, const sp<IMemory>& sharedBuffer, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, int sessionId) argument
180 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, int channelMask, int frameCount, audio_output_flags_t flags, callback_t cbf, void* user, int notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId) argument
743 createTrack_l( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, audio_output_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output) argument
[all...]
/frameworks/av/libvideoeditor/lvpp/
H A DVideoEditorPlayer.cpp393 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,
392 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) argument
H A DVideoEditorPlayer.h53 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
/frameworks/av/media/libstagefright/
H A DAudioPlayer.cpp118 int32_t numChannels, channelMask; local
122 if(!format->findInt32(kKeyChannelMask, &channelMask)) {
126 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER;
132 mSampleRate, numChannels, channelMask, AUDIO_FORMAT_PCM_16_BIT,
158 audio_channel_mask_t audioMask = channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER ?
159 audio_channel_out_mask_from_count(numChannels) : channelMask;
H A DUtils.cpp96 int32_t channelMask; local
97 if (meta->findInt32(kKeyChannelMask, &channelMask)) {
98 msg->setInt32("channel-mask", channelMask);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp378 int32_t channelMask; local
379 if (!codecRequest->findInt32("channel-mask", &channelMask)) {
380 channelMask = CHANNEL_MASK_USE_CHANNEL_ORDER;
386 (audio_channel_mask_t)channelMask,
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp1508 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
1522 ALOGV("open(%u, %d, 0x%x, %d, %d, %d)", sampleRate, channelCount, channelMask,
1537 if (channelMask == CHANNEL_MASK_USE_CHANNEL_ORDER) {
1538 channelMask = audio_channel_out_mask_from_count(channelCount);
1539 if (0 == channelMask) {
1553 channelMask,
1565 channelMask,
1909 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
1913 ALOGV("open(%u, %d, 0x%x, %d, %d)", sampleRate, channelCount, channelMask, format, bufferCount);
1507 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) argument
1908 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) argument
H A DMediaPlayerService.h92 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
193 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
/frameworks/wilhelm/src/
H A Ddata.c432 switch (pDataFormat->mPCM.channelMask) {
448 pDataFormat->mPCM.channelMask = pDataFormat->mPCM.numChannels == 2 ?
456 SL_LOGE("%s: channelMask=0x%x numChannels=%u", name,
457 pDataFormat->mPCM.channelMask, pDataFormat->mPCM.numChannels);
/frameworks/wilhelm/tests/automated/
H A DBufferQueue_test.cpp125 pcm.channelMask = SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT;
320 pcm.channelMask = SL_SPEAKER_FRONT_CENTER;
/frameworks/wilhelm/tests/examples/
H A DslesTestSawtoothBufferQueue.cpp174 pcm.channelMask = SL_SPEAKER_FRONT_LEFT;// | SL_SPEAKER_FRONT_RIGHT;

Completed in 449 milliseconds

12