/system/media/audio_utils/ |
conversion.cpp | 26 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { 27 if (channelCount < 2) { 36 for (size_t j = 0; j < channelCount; ++j) { 39 accum /= channelCount; // round to 0 40 for (size_t j = 0; j < channelCount; ++j) { 47 const float recipdiv = 1. / channelCount; 51 for (size_t j = 0; j < channelCount; ++j) { 54 if (limit && channelCount == 2) { 59 for (size_t j = 0; j < channelCount; ++j) {
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
AudioSample.java | 22 public final int channelCount; 25 public AudioSample(int sampleRate, int channelCount, byte[] bytes) { 27 this.channelCount = channelCount;
|
/hardware/qcom/msm8996/original-kernel-headers/linux/ |
msm_audio_alac.h | 16 uint8_t channelCount;
|
/packages/apps/TV/src/com/android/tv/util/ |
TvTrackInfoUtils.java | 30 * channelCount} and {@code id} in that precedence. 34 * @param channelCount The channel count to match. 39 final int channelCount) { 57 boolean rhsCountMatch = rhs.getAudioChannelCount() == channelCount; 58 boolean lhsCountMatch = lhs.getAudioChannelCount() == channelCount; 91 * @param channelCount The channel count to match. 95 int channelCount) { 99 Comparator<TvTrackInfo> comparator = createComparator(id, language, channelCount);
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/instrument/ |
TestSetupInstrumentation.java | 41 * -e channelCount number 47 private static final String CHANNEL_COUNT_ARG = "channelCount"; 89 int channelCount; 92 channelCount = getArgumentAsInt(CHANNEL_COUNT_ARG, 96 channelCount = getArgumentAsInt(CHANNEL_COUNT_ARG, 100 channelCount = getArgumentAsInt(CHANNEL_COUNT_ARG, 107 TestTvInputSetupActivity.registerChannels(getContext(), mInputId, true, channelCount);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
AudioSampleEntry.java | 53 private int channelCount; 74 return channelCount; 125 public void setChannelCount(int channelCount) { 126 this.channelCount = channelCount; 192 channelCount = IsoTypeReader.readUInt16(content); 244 ", channelCount=" + channelCount + 255 IsoTypeWriter.writeUInt16(byteBuffer, channelCount);
|
/frameworks/base/core/java/android/speech/tts/ |
FileSynthesisCallback.java | 102 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 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, 287 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount; 288 short blockAlign = (short) (sampleSizeInBytes * channelCount); [all...] |
PlaybackSynthesisCallback.java | 125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 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,
|
ITextToSpeechCallback.aidl | 69 * @param channelCount The number of channels. 71 void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount);
|
/frameworks/wilhelm/src/android/ |
channels.h | 58 extern SLuint32 sles_channel_out_mask_from_count(unsigned channelCount); 59 extern SLuint32 sles_channel_in_mask_from_count(unsigned channelCount);
|
channels.c | 30 SLuint32 sles_channel_out_mask_from_count(unsigned channelCount) 34 if (channelCount > FCC_8) { 37 switch (channelCount) { 69 SLuint32 sles_channel_in_mask_from_count(unsigned channelCount) { 70 switch (channelCount) { 76 if (channelCount > AUDIO_CHANNEL_COUNT_MAX) { 79 SLuint32 bitfield = (1 << channelCount) - 1;
|
AacBqToPcmCbRenderer.cpp | 181 int32_t channelCount; 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);
|
/system/media/audio_utils/include/audio_utils/ |
conversion.h | 34 * \param channelCount number of channels per frame 43 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames,
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
TestTvInputSetupActivity.java | 59 private void registerChannels(int channelCount) { 61 registerChannels(context, mInputId, false, channelCount); 65 int channelCount) { 66 Log.i(TAG, "Registering " + channelCount + " channels"); 68 for (int i = 1; i <= channelCount; i++) {
|
/packages/apps/TV/usbtuner/src/com/google/android/exoplayer/ |
MediaFormatUtil.java | 40 int channelCount = 57 channelCount, sampleRate, language, MediaFormat.OFFSET_SAMPLE_RELATIVE, 68 int channelCount, int sampleRate) { 70 MediaFormat.NO_VALUE, durationUs, channelCount, sampleRate, null, "");
|
/frameworks/av/media/libstagefright/ |
AudioSource.cpp | 54 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(); [all...] |
/hardware/libhardware_legacy/audio/ |
AudioHardwareInterface.cpp | 113 size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) 123 if (channelCount != 1) { 124 ALOGW("getInputBufferSize bad channel count: %d", channelCount);
|
/cts/tests/tests/media/src/android/media/cts/ |
AudioNativeTest.java | 214 int channelCount = Long.bitCount(mask); 215 boolean expectSuccess = (channelCount > 0) 221 boolean ok = track.open(channelCount, 242 int channelCount = Long.bitCount(mask); 243 boolean expectSuccess = (channelCount > 0) 249 boolean ok = recorder.open(channelCount,
|
NonBlockingAudioTrack.java | 48 public NonBlockingAudioTrack(int sampleRate, int channelCount, boolean hwAvSync, 51 switch (channelCount) {
|
/cts/tests/tests/media/libaudiojni/ |
sl-utils.cpp | 69 SLuint32 channelCountToMask(unsigned channelCount) { 70 switch (channelCount) {
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
UtilsTest_GetMultiAudioString.java | 80 private static TvTrackInfo createAudioTrackInfo(String language, int channelCount) { 82 .setLanguage(language).setAudioChannelCount(channelCount)
|
/frameworks/av/media/libnbaio/ |
NBAIO.cpp | 48 NBAIO_Format Format_from_SR_C(unsigned sampleRate, unsigned channelCount, 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);
|
/hardware/qcom/msm8996/kernel-headers/linux/ |
msm_audio_alac.h | 32 uint8_t channelCount;
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/tracks/ |
AC3TrackImpl.java | 23 int channelCount; 202 channelCount = 2; 206 channelCount = 1; 210 channelCount = 2; 214 channelCount = 3; 218 channelCount = 3; 222 channelCount = 4; 226 channelCount = 4; 230 channelCount = 5; 238 channelCount++ [all...] |
/frameworks/av/services/audioflinger/ |
BufferProviders.cpp | 304 ReformatBufferProvider::ReformatBufferProvider(int32_t channelCount, 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, 326 mChannelCount(channelCount), 329 mFrameSize(channelCount * audio_bytes_per_sample(format)), 342 this, channelCount, format, sampleRate, playbackRate.mSpeed,
|