/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;
|
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
DefaultAudioDestinationNode.cpp | 87 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfInputChannels, channelCount(), hardwareSampleRate); 102 void DefaultAudioDestinationNode::setChannelCount(unsigned long channelCount, ExceptionState& exceptionState) 104 // The channelCount for the input to this node controls the actual number of channels we 110 if (!maxChannelCount() || channelCount > maxChannelCount()) { 113 ExceptionMessages::indexOutsideRange<unsigned>("channel count", channelCount, 1, ExceptionMessages::InclusiveBound, maxChannelCount(), ExceptionMessages::InclusiveBound)); 117 unsigned long oldChannelCount = this->channelCount(); 118 AudioNode::setChannelCount(channelCount, exceptionState); 120 if (!exceptionState.hadException() && this->channelCount() != oldChannelCount && isInitialized()) {
|
AudioNode.idl | 49 [RaisesException=Setter] attribute unsigned long channelCount;
|
AudioNode.cpp | 270 unsigned long AudioNode::channelCount() 275 void AudioNode::setChannelCount(unsigned long channelCount, ExceptionState& exceptionState) 280 if (channelCount > 0 && channelCount <= AudioContext::maxNumberOfChannels()) { 281 if (m_channelCount != channelCount) { 282 m_channelCount = channelCount; 289 "channel count (" + String::number(channelCount) + ") must be between 1 and " + String::number(AudioContext::maxNumberOfChannels()) + ".");
|
/frameworks/base/core/java/android/speech/tts/ |
SynthesisCallback.java | 51 * @param channelCount The number of channels. Must be {@code 1} or {@code 2}. 55 public int start(int sampleRateInHz, int audioFormat, int channelCount);
|
FileSynthesisCallback.java | 105 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 108 + "," + channelCount + ")"); 127 mChannelCount = channelCount; 196 int channelCount = 0; 222 channelCount = mChannelCount; 230 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength)); 279 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, 282 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount; 283 short blockAlign = (short) (sampleSizeInBytes * channelCount); 296 header.putShort((short) channelCount); [all...] |
PlaybackSynthesisCallback.java | 122 public int start(int sampleRateInHz, int audioFormat, int channelCount) { 123 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount 126 int channelConfig = BlockingAudioTrack.getChannelConfig(channelCount); 130 Log.e(TAG, "Unsupported number of channels :" + channelCount); 147 mAudioParams, sampleRateInHz, audioFormat, channelCount,
|
BlockingAudioTrack.java | 80 int audioFormat, int channelCount) { 84 mChannelCount = channelCount; 175 static int getChannelConfig(int channelCount) { 176 if (channelCount == 1) { 178 } else if (channelCount == 2){
|
SynthesisPlaybackQueueItem.java | 67 int audioFormat, int channelCount, UtteranceProgressDispatcher dispatcher, 77 mAudioTrack = new BlockingAudioTrack(audioParams, sampleRate, audioFormat, 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);
|
/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);
|
/hardware/libhardware_legacy/include/hardware_legacy/ |
AudioHardwareBase.h | 48 virtual size_t getInputBufferSize(uint32_t sampleRate, int format, int channelCount);
|
/frameworks/wilhelm/src/android/ |
android_sles_conversions.h | 118 static inline uint32_t channelCountToMask(uint32_t channelCount) 123 switch (channelCount) {
|
AacBqToPcmCbRenderer.cpp | 184 int32_t channelCount; 185 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); 199 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; 201 channelCountToMask(channelCount); 204 channelCount, sr);
|
android_AudioSfDecoder.cpp | 267 int32_t channelCount; 268 bool hasChannelCount = meta->findInt32(kKeyChannelCount, &channelCount); 329 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); 353 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; 355 channelCountToMask(channelCount); 763 int32_t channelCount; 764 CHECK(meta->findInt32(kKeyChannelCount, &channelCount)); 774 sr, channelCount); 775 mPcmFormatValues[ANDROID_KEY_INDEX_PCMFORMAT_NUMCHANNELS] = channelCount; 778 channelCountToMask(channelCount); [all...] |
/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/ |
FastCapture.cpp | 107 unsigned channelCount = Format_channelCount(format); 108 ALOG_ASSERT(channelCount == 1 || channelCount == 2); 134 unsigned channelCount = Format_channelCount(format); 136 readBuffer = new short[frameCount * channelCount]; 188 unsigned channelCount = Format_channelCount(format); 190 memset(readBuffer, 0, frameCount * channelCount * sizeof(short));
|
/frameworks/av/media/libstagefright/ |
AudioSource.cpp | 53 audio_source_t inputSource, uint32_t sampleRate, uint32_t channelCount) 59 ALOGV("sampleRate: %d, channelCount: %d", sampleRate, channelCount); 60 CHECK(channelCount == 1 || channelCount == 2); 66 audio_channel_in_mask_from_count(channelCount)); 70 uint32_t frameCount = kMaxBufferSize / sizeof(int16_t) / channelCount; 80 audio_channel_in_mask_from_count(channelCount), 176 meta->setInt32(kKeyChannelCount, mRecord->channelCount()); 188 const int32_t nChannels = mRecord->channelCount(); [all...] |
/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);
|
/system/media/audio_utils/include/audio_utils/ |
resampler.h | 97 uint32_t channelCount,
|
/cts/tests/tests/media/src/android/media/cts/ |
CodecState.java | 278 int channelCount = 282 " sampleRate:" + sampleRate + " channels:" + channelCount); 287 if (channelCount < 1 || channelCount > 8 || 291 mAudioTrack = new NonBlockingAudioTrack(sampleRate, channelCount,
|
NonBlockingAudioTrack.java | 50 public NonBlockingAudioTrack(int sampleRate, int channelCount, boolean hwAvSync, 53 switch (channelCount) { 100 mFrameSize = 2 * channelCount;
|
/development/ndk/platforms/android-13/include/android/ |
tts.h | 122 int channelCount,
|
/device/asus/fugu/libaudio/ |
AudioHardwareInput.h | 57 uint32_t channelCount);
|
/external/chromium_org/third_party/decklink/mac/include/ |
DeckLinkAPI_v9_2.h | 59 virtual HRESULT EnableAudioInput (/* in */ BMDAudioSampleRate sampleRate, /* in */ BMDAudioSampleType sampleType, /* in */ uint32_t channelCount) = 0;
|