/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 99 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()
|
D | PlaybackSynthesisCallback.java | 137 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()
|
D | BlockingAudioTrack.java | 77 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()
|
D | SynthesisCallback.java | 52 public int start(int sampleRateInHz, int audioFormat, int channelCount); in start() argument
|
D | SynthesisPlaybackQueueItem.java | 67 int audioFormat, int channelCount, in SynthesisPlaybackQueueItem() argument 79 channelCount, volume, pan); in SynthesisPlaybackQueueItem()
|
/frameworks/av/libvideoeditor/lvpp/ |
D | DummyAudioSource.cpp | 32 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()
|
D | DummyAudioSource.h | 32 int32_t samplingRate, int32_t channelCount, 60 int32_t samplingRate, int32_t channelCount,
|
D | VideoEditorPlayer.cpp | 357 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()
|
D | VideoEditorPlayer.h | 44 virtual ssize_t channelCount() const; 53 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
|
/frameworks/av/media/libstagefright/ |
D | AudioSource.cpp | 51 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()
|
D | AMRWriter.cpp | 90 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/ |
D | AacBqToPcmCbRenderer.cpp | 184 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()
|
D | android_AudioSfDecoder.cpp | 265 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()
|
D | android_sles_conversions.h | 85 static inline uint32_t channelCountToMask(uint32_t channelCount) in channelCountToMask() argument 90 switch (channelCount) { in channelCountToMask()
|
D | android_GenericMediaPlayer.cpp | 546 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/ |
D | AudioRecord.java | 462 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
|
D | MediaFormat.java | 269 int channelCount) { in createAudioFormat() argument 273 format.setInteger(KEY_CHANNEL_COUNT, channelCount); in createAudioFormat()
|
D | AudioTrack.java | 667 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/ |
D | AudioMixer.cpp | 200 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/ |
D | EffectEqualizer.cpp | 240 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/ |
D | NBAIO.cpp | 96 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/ |
D | MediaPlayerService.cpp | 1227 *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 …]
|
D | MediaPlayerService.h | 85 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/ |
D | AudioRecord.cpp | 66 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/ |
D | MediaPlayerInterface.h | 86 virtual ssize_t channelCount() const = 0; 97 uint32_t sampleRate, int channelCount, audio_channel_mask_t channelMask,
|