Home
last modified time | relevance | path

Searched refs:channelCount (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java99 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
102 + "," + channelCount + ")"); in start()
116 mChannelCount = channelCount; in start()
198 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, in makeWavHeader() argument
202 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount; in makeWavHeader()
203 short blockAlign = (short) (sampleSizeInBytes * channelCount); in makeWavHeader()
216 header.putShort((short) channelCount); in makeWavHeader()
DPlaybackSynthesisCallback.java137 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
140 + "," + channelCount + ")"); in start()
143 int channelConfig = BlockingAudioTrack.getChannelConfig(channelCount); in start()
145 Log.e(TAG, "Unsupported number of channels :" + channelCount); in start()
155 mStreamType, sampleRateInHz, audioFormat, channelCount, mVolume, mPan, in start()
DBlockingAudioTrack.java77 int audioFormat, int channelCount, in BlockingAudioTrack() argument
82 mChannelCount = channelCount; in BlockingAudioTrack()
175 static int getChannelConfig(int channelCount) { in getChannelConfig() argument
176 if (channelCount == 1) { in getChannelConfig()
178 } else if (channelCount == 2){ in getChannelConfig()
DSynthesisCallback.java52 public int start(int sampleRateInHz, int audioFormat, int channelCount); in start() argument
DSynthesisPlaybackQueueItem.java67 int audioFormat, int channelCount, in SynthesisPlaybackQueueItem() argument
79 channelCount, volume, pan); in SynthesisPlaybackQueueItem()
/frameworks/av/libvideoeditor/lvpp/
DDummyAudioSource.cpp32 int32_t samplingRate, int32_t channelCount, in Create() argument
37 channelCount, in Create()
44 int32_t samplingRate, int32_t channelCount, in DummyAudioSource() argument
47 mChannelCount(channelCount), in DummyAudioSource()
60 ALOGV("channelCount = %d", channelCount); in DummyAudioSource()
DDummyAudioSource.h32 int32_t samplingRate, int32_t channelCount,
60 int32_t samplingRate, int32_t channelCount,
DVideoEditorPlayer.cpp357 ssize_t VideoEditorPlayer::VeAudioOutput::channelCount() const in channelCount() function in android::VideoEditorPlayer::VeAudioOutput
360 return mTrack->channelCount(); in channelCount()
393 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, in open() argument
407 ALOGV("open(%u, %d, %d, %d)", sampleRate, channelCount, format, bufferCount); in open()
425 switch(channelCount) { in open()
DVideoEditorPlayer.h44 virtual ssize_t channelCount() const;
53 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
/frameworks/av/media/libstagefright/
DAudioSource.cpp51 audio_source_t inputSource, uint32_t sampleRate, uint32_t channelCount) in AudioSource() argument
58 ALOGV("sampleRate: %d, channelCount: %d", sampleRate, channelCount); in AudioSource()
59 CHECK(channelCount == 1 || channelCount == 2); in AudioSource()
65 audio_channel_in_mask_from_count(channelCount)); in AudioSource()
69 int frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount; in AudioSource()
79 audio_channel_in_mask_from_count(channelCount), in AudioSource()
177 meta->setInt32(kKeyChannelCount, mRecord->channelCount()); in getFormat()
189 const int32_t nChannels = mRecord->channelCount(); in rampVolume()
DAMRWriter.cpp90 int32_t channelCount; in addSource() local
92 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in addSource()
93 CHECK_EQ(channelCount, 1); in addSource()
/frameworks/wilhelm/src/android/
DAacBqToPcmCbRenderer.cpp184 int32_t channelCount; in onPrepare() local
185 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in onPrepare()
199 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; in onPrepare()
201 channelCountToMask(channelCount); in onPrepare()
204 channelCount, sr); in onPrepare()
Dandroid_AudioSfDecoder.cpp265 int32_t channelCount; in onPrepare() local
266 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount); in onPrepare()
327 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in onPrepare()
351 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; in onPrepare()
353 channelCountToMask(channelCount); in onPrepare()
761 int32_t channelCount; in hasNewDecodeParams() local
762 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); in hasNewDecodeParams()
772 sr, channelCount); in hasNewDecodeParams()
773 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; in hasNewDecodeParams()
776 channelCountToMask(channelCount); in hasNewDecodeParams()
Dandroid_sles_conversions.h85 static inline uint32_t channelCountToMask(uint32_t channelCount) in channelCountToMask() argument
90 switch (channelCount) { in channelCountToMask()
Dandroid_GenericMediaPlayer.cpp546 int32_t channelCount; in afterMediaPlayerPreparedSuccessfully() local
550 channelCount = reply->readInt32(); in afterMediaPlayerPreparedSuccessfully()
553 channelCount = 2; in afterMediaPlayerPreparedSuccessfully()
555 if (UNKNOWN_NUMCHANNELS != channelCount) { in afterMediaPlayerPreparedSuccessfully()
557 notify(PLAYEREVENT_CHANNEL_COUNT, channelCount, true /*async*/); in afterMediaPlayerPreparedSuccessfully()
/frameworks/base/media/java/android/media/
DAudioRecord.java462 int channelCount = 0; in getMinBufferSize() local
467 channelCount = 1; in getMinBufferSize()
472 channelCount = 2; in getMinBufferSize()
486 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize()
832 int sampleRateInHz, int channelCount, int audioFormat); in native_get_min_buff_size() argument
DMediaFormat.java269 int channelCount) { in createAudioFormat() argument
273 format.setInteger(KEY_CHANNEL_COUNT, channelCount); in createAudioFormat()
DAudioTrack.java667 int channelCount = 0; in getMinBufferSize() local
671 channelCount = 1; in getMinBufferSize()
675 channelCount = 2; in getMinBufferSize()
683 channelCount = Integer.bitCount(channelConfig); in getMinBufferSize()
699 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize()
/frameworks/av/services/audioflinger/
DAudioMixer.cpp200 t->channelCount = 2; in getTrackName()
239 uint32_t channelCount = popcount(mask); in initTrackDownmix() local
240 ALOG_ASSERT((channelCount <= MAX_NUM_CHANNELS_TO_DOWNMIX) && channelCount); in initTrackDownmix()
242 if (channelCount > MAX_NUM_CHANNELS) { in initTrackDownmix()
244 pTrack->channelCount = channelCount; in initTrackDownmix()
433 uint32_t channelCount = popcount(mask); in setParameter() local
434 ALOG_ASSERT((channelCount <= MAX_NUM_CHANNELS_TO_DOWNMIX) && channelCount); in setParameter()
436 track.channelCount = channelCount; in setParameter()
568 downmixerBufferProvider != NULL ? MAX_NUM_CHANNELS : channelCount, in setResampler()
669 n |= NEEDS_CHANNEL_1 + t.channelCount - 1; in process__validate()
[all …]
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp240 int channelCount; in Equalizer_setConfig() local
242 channelCount = 1; in Equalizer_setConfig()
244 channelCount = 2; in Equalizer_setConfig()
246 CHECK_ARG(channelCount <= AudioBiquadFilter::MAX_CHANNELS); in Equalizer_setConfig()
250 pContext->pEqualizer->configure(channelCount, in Equalizer_setConfig()
253 pContext->adapter.configure(*pContext->pEqualizer, channelCount, in Equalizer_setConfig()
/frameworks/av/media/libnbaio/
DNBAIO.cpp96 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount) in Format_from_SR_C() argument
127 switch (channelCount) { in Format_from_SR_C()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1227 *pNumChannels = cache->channelCount(); in decode()
1277 *pNumChannels = cache->channelCount(); in decode()
1351 ssize_t MediaPlayerService::AudioOutput::channelCount() const in channelCount() function in android::MediaPlayerService::AudioOutput
1354 return mTrack->channelCount(); in channelCount()
1388 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask, in open() argument
1402 ALOGV("open(%u, %d, 0x%x, %d, %d, %d)", sampleRate, channelCount, channelMask, in open()
1418 channelMask = audio_channel_out_mask_from_count(channelCount); in open()
1420 ALOGE("open() error, can\'t derive mask for %d audio channels", channelCount); in open()
1472 (mRecycledTrack->channelCount() != channelCount) || in open()
1476 mRecycledTrack->channelCount(), channelCount, in open()
[all …]
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; } in channelCount() function
195 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
/frameworks/av/media/libmedia/
DAudioRecord.cpp66 uint32_t channelCount = popcount(channelMask); in getMinFrameCount() local
67 size /= channelCount * audio_bytes_per_sample(format); in getMinFrameCount()
173 uint32_t channelCount = popcount(channelMask); in set() local
174 mChannelCount = channelCount; in set()
177 mFrameSize = channelCount * audio_bytes_per_sample(format); in set()
268 uint32_t AudioRecord::channelCount() const in channelCount() function in android::AudioRecord
/frameworks/av/include/media/
DMediaPlayerInterface.h86 virtual ssize_t channelCount() const = 0;
97 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,

12