Searched defs:channelCount (Results 1 - 25 of 43) sorted by relevance

12

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
H A DAudioSample.java22 public final int channelCount; field in class:AudioSample
25 public AudioSample(int sampleRate, int channelCount, byte[] bytes) { argument
27 this.channelCount = channelCount;
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisCallback.java70 * @param channelCount The number of channels. Must be {@code 1} or {@code 2}.
75 @IntRange(from=1,to=2) int channelCount);
74 start(int sampleRateInHz, @SupportedAudioFormat int audioFormat, @IntRange(from=1,to=2) int channelCount) argument
H A DUtteranceProgressListener.java97 * @param channelCount The number of channels.
99 public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount) { argument
H A DFileSynthesisCallback.java102 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument
105 + "," + channelCount + ")");
114 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount);
133 mChannelCount = channelCount;
204 int channelCount = 0;
229 channelCount = mChannelCount;
237 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength));
284 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, argument
287 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount;
288 short blockAlign = (short) (sampleSizeInBytes * channelCount);
[all...]
H A DPlaybackSynthesisCallback.java125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument
126 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount
135 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount);
137 int channelConfig = BlockingAudioTrack.getChannelConfig(channelCount);
141 Log.e(TAG, "Unsupported number of channels :" + channelCount);
158 mAudioParams, sampleRateInHz, audioFormat, channelCount,
H A DSynthesisPlaybackQueueItem.java67 int audioFormat, int channelCount, UtteranceProgressDispatcher dispatcher,
77 mAudioTrack = new BlockingAudioTrack(audioParams, sampleRate, audioFormat, channelCount);
66 SynthesisPlaybackQueueItem(AudioOutputParams audioParams, int sampleRate, int audioFormat, int channelCount, UtteranceProgressDispatcher dispatcher, Object callerIdentity, AbstractEventLogger logger) argument
H A DBlockingAudioTrack.java79 int audioFormat, int channelCount) {
83 mChannelCount = channelCount;
174 static int getChannelConfig(int channelCount) { argument
175 if (channelCount == 1) {
177 } else if (channelCount == 2){
78 BlockingAudioTrack(AudioOutputParams audioParams, int sampleRate, int audioFormat, int channelCount) argument
/frameworks/wilhelm/src/android/
H A DAacBqToPcmCbRenderer.cpp181 int32_t channelCount; local
182 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
196 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount;
198 sles_channel_out_mask_from_count(channelCount);
201 channelCount, sr);
H A Dchannels.c30 SLuint32 sles_channel_out_mask_from_count(unsigned channelCount) argument
34 if (channelCount > FCC_8) {
37 switch (channelCount) {
69 SLuint32 sles_channel_in_mask_from_count(unsigned channelCount) { argument
70 switch (channelCount) {
76 if (channelCount > AUDIO_CHANNEL_COUNT_MAX) {
79 SLuint32 bitfield = (1 << channelCount) - 1;
H A Dandroid_GenericMediaPlayer.cpp549 int32_t channelCount; local
553 channelCount = reply->readInt32();
556 channelCount = 2;
558 if (UNKNOWN_NUMCHANNELS != channelCount) {
560 notify(PLAYEREVENT_CHANNEL_COUNT, channelCount, true /*async*/);
H A Dandroid_AudioSfDecoder.cpp270 int32_t channelCount; local
271 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount);
326 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
350 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount;
352 sles_channel_out_mask_from_count(channelCount);
760 int32_t channelCount; local
761 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
771 sr, channelCount);
772 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount;
775 sles_channel_out_mask_from_count(channelCount);
[all...]
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp48 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, argument
51 if (sampleRate == 0 || channelCount == 0 || !audio_is_valid_format(format)) {
56 ret.mChannelCount = channelCount;
59 channelCount * audio_bytes_per_sample(format) : sizeof(uint8_t);
/frameworks/av/media/libstagefright/
H A DAMRWriter.cpp79 int32_t channelCount; local
81 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
82 CHECK_EQ(channelCount, 1);
H A DAudioSource.cpp54 uint32_t sampleRate, uint32_t channelCount, uint32_t outSampleRate,
67 ALOGV("sampleRate: %u, outSampleRate: %u, channelCount: %u",
68 sampleRate, outSampleRate, channelCount);
69 CHECK(channelCount == 1 || channelCount == 2);
76 audio_channel_in_mask_from_count(channelCount));
80 uint32_t frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount;
90 audio_channel_in_mask_from_count(channelCount),
195 meta->setInt32(kKeyChannelCount, mRecord->channelCount());
208 const int32_t nChannels = mRecord->channelCount();
52 AudioSource( audio_source_t inputSource, const String16 &opPackageName, uint32_t sampleRate, uint32_t channelCount, uint32_t outSampleRate, uid_t uid, pid_t pid) argument
[all...]
/frameworks/av/services/audioflinger/
H A DFastCapture.cpp108 unsigned channelCount = Format_channelCount(mFormat); local
109 ALOG_ASSERT(channelCount >= 1 && channelCount <= FCC_8);
H A DBufferProviders.cpp304 ReformatBufferProvider::ReformatBufferProvider(int32_t channelCount, argument
308 channelCount * audio_bytes_per_sample(inputFormat),
309 channelCount * audio_bytes_per_sample(outputFormat),
311 mChannelCount(channelCount),
316 this, channelCount, inputFormat, outputFormat);
324 TimestretchBufferProvider::TimestretchBufferProvider(int32_t channelCount, argument
326 mChannelCount(channelCount),
329 mFrameSize(channelCount * audio_bytes_per_sample(format)),
342 this, channelCount, format, sampleRate, playbackRate.mSpeed,
H A DPatchPanel.cpp271 audio_channel_in_mask_from_count(newPatch->mPlaybackThread->channelCount());
427 uint32_t channelCount = patch->mPlaybackThread->channelCount(); local
428 audio_channel_mask_t inChannelMask = audio_channel_in_mask_from_count(channelCount);
H A DTrackBase.h103 uint32_t channelCount() const { return mChannelCount; } function in class:TrackBase
H A DAudioMixer.h195 uint8_t channelCount; // 1 or 2, redundant with (needs & NEEDS_CHANNEL_COUNT__MASK) member in struct:android::AudioMixer::track_t
382 static process_hook_t getProcessHook(int processType, uint32_t channelCount,
384 static hook_t getTrackHook(int trackType, uint32_t channelCount,
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp581 int32_t channelCount; local
583 CHECK(format->findInt32("channel-count", &channelCount));
590 audio_channel_out_mask_from_count(channelCount),
/frameworks/wilhelm/tests/examples/
H A DslesTestRecBuffQueue.cpp43 int channelCount = 1; variable
165 info.channels = channelCount;
249 pcm.numChannels = channelCount;
276 pcm.channelMask = (1 << channelCount) - 1;
278 switch (channelCount) {
286 fprintf(stderr, "Unsupported channel count %d\n", channelCount);
420 channelCount = atoi(&arg[2]);
455 frameSize = audio_bytes_per_sample(transferFormat) * channelCount;
/frameworks/av/media/libeffects/testlibs/
H A DEffectEqualizer.cpp239 int channelCount; local
241 channelCount = 1;
243 channelCount = 2;
245 CHECK_ARG(channelCount <= AudioBiquadFilter::MAX_CHANNELS);
249 pContext->pEqualizer->configure(channelCount,
252 pContext->adapter.configure(*pContext->pEqualizer, channelCount,
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPort.cpp195 uint32_t channelCount = UINT_MAX; local
203 if ((cnlCount < channelCount) && (cnlCount > 0)) {
205 channelCount = cnlCount;
209 uint32_t channelCount = 0; local
224 if ((cnlCount > channelCount) && (cnlCount <= maxCount)) {
226 channelCount = cnlCount;
/frameworks/av/include/media/
H A DAudioRecord.h241 uint32_t channelCount() const { return mChannelCount; } function in class:android::AudioRecord
/frameworks/av/media/libstagefright/wifi-display/source/
H A DTSPacketizer.cpp314 int32_t channelCount; local
315 CHECK(mFormat->findInt32("channel-count", &channelCount));
316 CHECK_EQ(channelCount, 2);

Completed in 581 milliseconds

12