Searched refs:channelCount (Results 1 - 25 of 41) sorted by relevance

12

/frameworks/base/core/java/android/speech/tts/
H A DSynthesisCallback.java48 * @param channelCount The number of channels. Must be {@code 1} or {@code 2}.
51 public int start(int sampleRateInHz, int audioFormat, int channelCount); argument
H A DPlaybackSynthesisCallback.java137 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument
140 + "," + channelCount + ")");
143 int channelConfig = BlockingAudioTrack.getChannelConfig(channelCount);
145 Log.e(TAG, "Unsupported number of channels :" + channelCount);
155 mStreamType, sampleRateInHz, audioFormat, channelCount, mVolume, mPan,
H A DFileSynthesisCallback.java125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { argument
128 + "," + channelCount + ")");
146 mChannelCount = channelCount;
229 private byte[] makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, argument
233 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount;
234 short blockAlign = (short) (sampleSizeInBytes * channelCount);
247 header.putShort((short) channelCount);
H A DBlockingAudioTrack.java77 int audioFormat, int channelCount,
82 mChannelCount = channelCount;
175 static int getChannelConfig(int channelCount) { argument
176 if (channelCount == 1) {
178 } else if (channelCount == 2){
76 BlockingAudioTrack(int streamType, int sampleRate, int audioFormat, int channelCount, float volume, float pan) argument
H A DSynthesisPlaybackQueueItem.java67 int audioFormat, int channelCount,
79 channelCount, volume, pan);
66 SynthesisPlaybackQueueItem(int streamType, int sampleRate, int audioFormat, int channelCount, float volume, float pan, UtteranceProgressDispatcher dispatcher, Object callerIdentity, EventLogger logger) argument
/frameworks/wilhelm/src/android/
H A Dandroid_sles_conversions.h83 static inline uint32_t channelCountToMask(uint32_t channelCount) argument
88 switch (channelCount) {
H A DAacBqToPcmCbRenderer.cpp184 int32_t channelCount; local
185 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
199 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount;
201 channelCountToMask(channelCount);
204 channelCount, sr);
H A Dandroid_AudioSfDecoder.cpp265 int32_t channelCount; local
266 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount);
327 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
351 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount;
353 channelCountToMask(channelCount);
761 int32_t channelCount; local
762 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
772 sr, channelCount);
773 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount;
776 channelCountToMask(channelCount);
[all...]
H A Dandroid_GenericMediaPlayer.cpp546 int32_t channelCount; local
550 channelCount = reply->readInt32();
553 channelCount = 2;
555 if (UNKNOWN_NUMCHANNELS != channelCount) {
557 notify(PLAYEREVENT_CHANNEL_COUNT, channelCount, true /*async*/);
/frameworks/av/libvideoeditor/lvpp/
H A DDummyAudioSource.h32 int32_t samplingRate, int32_t channelCount,
60 int32_t samplingRate, int32_t channelCount,
H A DDummyAudioSource.cpp32 int32_t samplingRate, int32_t channelCount,
37 channelCount,
44 int32_t samplingRate, int32_t channelCount,
47 mChannelCount(channelCount),
60 ALOGV("channelCount = %d", channelCount);
31 Create( int32_t samplingRate, int32_t channelCount, int64_t frameDurationUs, int64_t audioDurationUs) argument
43 DummyAudioSource( int32_t samplingRate, int32_t channelCount, int64_t frameDurationUs, int64_t audioDurationUs) argument
H A DVideoEditorPlayer.cpp357 ssize_t VideoEditorPlayer::VeAudioOutput::channelCount() const function in class:android::VideoEditorPlayer::VeAudioOutput
360 return mTrack->channelCount();
393 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
407 ALOGV("open(%u, %d, %d, %d)", sampleRate, channelCount, format, bufferCount);
425 switch(channelCount) {
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
/frameworks/av/media/libnbaio/
H A DNBAIO.cpp85 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount) argument
87 if (sampleRate == 44100 && channelCount == 2) return Format_SR44_1_C2_I16;
88 if (sampleRate == 48000 && channelCount == 2) return Format_SR48_C2_I16;
89 if (sampleRate == 44100 && channelCount == 1) return Format_SR44_1_C1_I16;
90 if (sampleRate == 48000 && channelCount == 1) return Format_SR48_C1_I16;
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp51 audio_source_t inputSource, uint32_t sampleRate, uint32_t channelCount)
58 ALOGV("sampleRate: %d, channelCount: %d", sampleRate, channelCount);
59 CHECK(channelCount == 1 || channelCount == 2);
65 audio_channel_in_mask_from_count(channelCount));
69 int frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount;
79 audio_channel_in_mask_from_count(channelCount),
177 meta->setInt32(kKeyChannelCount, mRecord->channelCount());
189 const int32_t nChannels = mRecord->channelCount();
50 AudioSource( audio_source_t inputSource, uint32_t sampleRate, uint32_t channelCount) argument
[all...]
H A DAMRWriter.cpp90 int32_t channelCount; local
92 CHECK(meta->findInt32(kKeyChannelCount, &channelCount));
93 CHECK_EQ(channelCount, 1);
/frameworks/base/media/java/android/media/
H A DMediaFormat.java262 * @param channelCount The number of audio channels in the content.
267 int channelCount) {
271 format.setInteger(KEY_CHANNEL_COUNT, channelCount);
264 createAudioFormat( String mime, int sampleRate, int channelCount) argument
H A DAudioRecord.java461 int channelCount = 0;
466 channelCount = 1;
470 channelCount = 2;
484 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat);
828 int sampleRateInHz, int channelCount, int audioFormat);
827 native_get_min_buff_size( int sampleRateInHz, int channelCount, int audioFormat) argument
H A DAudioTrack.java661 int channelCount = 0;
665 channelCount = 1;
669 channelCount = 2;
677 channelCount = Integer.bitCount(channelConfig);
693 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat);
/frameworks/av/include/media/
H A DAudioRecord.h64 int channelCount; member in class:android::AudioRecord::Buffer
186 int channelCount() const;
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp66 int channelCount = popcount(channelMask); local
67 size /= channelCount * audio_bytes_per_sample(format);
159 int channelCount = popcount(channelMask); local
213 mChannelCount = (uint8_t)channelCount;
250 int AudioRecord::channelCount() const function in class:android::AudioRecord
263 return channelCount()*audio_bytes_per_sample(mFormat);
563 audioBuffer->channelCount= mChannelCount;
/frameworks/av/media/libeffects/testlibs/
H A DEffectEqualizer.cpp257 int channelCount; local
259 channelCount = 1;
261 channelCount = 2;
263 CHECK_ARG(channelCount <= AudioBiquadFilter::MAX_CHANNELS);
267 pContext->pEqualizer->configure(channelCount,
270 pContext->adapter.configure(*pContext->pEqualizer, channelCount,
/frameworks/av/include/media/nbaio/
H A DNBAIO.h68 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.h85 virtual ssize_t channelCount() const;
94 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
186 virtual ssize_t channelCount() const { return (ssize_t)mChannelCount; } function in class:android::MediaPlayerService::AudioCache
195 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
H A DMediaPlayerService.cpp1213 *pNumChannels = cache->channelCount();
1215 ALOGV("return memory @ %p, sampleRate=%u, channelCount = %d, format = %d", mem->pointer(), *pSampleRate, *pNumChannels, *pFormat);
1263 *pNumChannels = cache->channelCount();
1265 ALOGV("return memory @ %p, sampleRate=%u, channelCount = %d, format = %d", mem->pointer(), *pSampleRate, *pNumChannels, *pFormat);
1337 ssize_t MediaPlayerService::AudioOutput::channelCount() const function in class:android::MediaPlayerService::AudioOutput
1340 return mTrack->channelCount();
1374 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
1388 ALOGV("open(%u, %d, 0x%x, %d, %d, %d)", sampleRate, channelCount, channelMask,
1404 channelMask = audio_channel_out_mask_from_count(channelCount);
1406 ALOGE("open() error, can\'t derive mask for %d audio channels", channelCount);
1373 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
1774 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
[all...]
/frameworks/av/services/audioflinger/
H A DAudioMixer.cpp188 t->channelCount = 2;
228 uint32_t channelCount = popcount(mask); local
229 ALOG_ASSERT((channelCount <= MAX_NUM_CHANNELS_TO_DOWNMIX) && channelCount);
231 if (channelCount > MAX_NUM_CHANNELS) {
233 pTrack->channelCount = channelCount;
422 uint32_t channelCount = popcount(mask); local
423 ALOG_ASSERT((channelCount <= MAX_NUM_CHANNELS_TO_DOWNMIX) && channelCount);
[all...]

Completed in 336 milliseconds

12