/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
D | AudioResampler.cpp | 45 AudioResampler::AudioResampler(unsigned numberOfChannels) in AudioResampler() argument 48 for (unsigned i = 0; i < numberOfChannels; ++i) in AudioResampler() 51 m_sourceBus = AudioBus::create(numberOfChannels, 0, false); in AudioResampler() 54 void AudioResampler::configureChannels(unsigned numberOfChannels) in configureChannels() argument 57 if (numberOfChannels == currentSize) in configureChannels() 61 if (numberOfChannels > currentSize) { in configureChannels() 62 for (unsigned i = currentSize; i < numberOfChannels; ++i) in configureChannels() 65 m_kernels.resize(numberOfChannels); in configureChannels() 68 m_sourceBus = AudioBus::create(numberOfChannels, 0, false); in configureChannels() 77 unsigned numberOfChannels = m_kernels.size(); in process() local [all …]
|
D | DynamicsCompressor.cpp | 43 DynamicsCompressor::DynamicsCompressor(float sampleRate, unsigned numberOfChannels) in DynamicsCompressor() argument 44 : m_numberOfChannels(numberOfChannels) in DynamicsCompressor() 46 , m_compressor(sampleRate, numberOfChannels) in DynamicsCompressor() 53 setNumberOfChannels(numberOfChannels); in DynamicsCompressor() 104 unsigned numberOfChannels = destinationBus->numberOfChannels(); in process() local 105 unsigned numberOfSourceChannels = sourceBus->numberOfChannels(); in process() 107 ASSERT(numberOfChannels == m_numberOfChannels && numberOfSourceChannels); in process() 109 if (numberOfChannels != m_numberOfChannels || !numberOfSourceChannels) { in process() 114 switch (numberOfChannels) { in process() 132 for (unsigned i = 0; i < numberOfChannels; ++i) in process() [all …]
|
D | AudioBus.cpp | 53 PassRefPtr<AudioBus> AudioBus::create(unsigned numberOfChannels, size_t length, bool allocate) in create() argument 55 ASSERT(numberOfChannels <= MaxBusChannels); in create() 56 if (numberOfChannels > MaxBusChannels) in create() 59 return adoptRef(new AudioBus(numberOfChannels, length, allocate)); in create() 62 AudioBus::AudioBus(unsigned numberOfChannels, size_t length, bool allocate) in AudioBus() argument 68 m_channels.reserveInitialCapacity(numberOfChannels); in AudioBus() 70 for (unsigned i = 0; i < numberOfChannels; ++i) { in AudioBus() 108 switch (numberOfChannels()) { in channelByType() 164 if (numberOfChannels() != bus.numberOfChannels()) in topologyMatches() 177 unsigned numberOfChannels = sourceBuffer->numberOfChannels(); in createBufferFromRange() local [all …]
|
D | Reverb.cpp | 60 size_t numberOfChannels = response->numberOfChannels(); in calculateNormalizationScale() local 65 for (size_t i = 0; i < numberOfChannels; ++i) { in calculateNormalizationScale() 71 power = sqrt(power / (numberOfChannels * length)); in calculateNormalizationScale() 86 if (response->numberOfChannels() == 4) in calculateNormalizationScale() 92 … impulseResponse, size_t renderSliceSize, size_t maxFFTSize, size_t numberOfChannels, bool useBack… in Reverb() argument 103 … initialize(impulseResponse, renderSliceSize, maxFFTSize, numberOfChannels, useBackgroundThreads); in Reverb() 112 …seResponseBuffer, size_t renderSliceSize, size_t maxFFTSize, size_t numberOfChannels, bool useBack… in initialize() argument 117 size_t numResponseChannels = impulseResponseBuffer->numberOfChannels(); in initialize() 118 m_convolvers.reserveCapacity(numberOfChannels); in initialize() 140 …ss = sourceBus && destinationBus && sourceBus->numberOfChannels() > 0 && destinationBus->numberOfC… in process() [all …]
|
D | AudioDSPKernelProcessor.cpp | 43 AudioDSPKernelProcessor::AudioDSPKernelProcessor(float sampleRate, unsigned numberOfChannels) in AudioDSPKernelProcessor() argument 44 : AudioProcessor(sampleRate, numberOfChannels) in AudioDSPKernelProcessor() 62 for (unsigned i = 0; i < numberOfChannels(); ++i) in initialize() 93 …bool channelCountMatches = source->numberOfChannels() == destination->numberOfChannels() && source… in process() 123 void AudioDSPKernelProcessor::setNumberOfChannels(unsigned numberOfChannels) in setNumberOfChannels() argument 125 if (numberOfChannels == m_numberOfChannels) in setNumberOfChannels() 130 m_numberOfChannels = numberOfChannels; in setNumberOfChannels()
|
D | AudioFIFO.cpp | 37 AudioFIFO::AudioFIFO(unsigned numberOfChannels, size_t fifoLength) in AudioFIFO() argument 38 : m_fifoAudioBus(AudioBus::create(numberOfChannels, fifoLength)) in AudioFIFO() 59 size_t numberOfChannels = m_fifoAudioBus->numberOfChannels(); in consume() local 61 for (size_t channelIndex = 0; channelIndex < numberOfChannels; ++channelIndex) { in consume() 96 size_t numberOfChannels = m_fifoAudioBus->numberOfChannels(); in push() local 98 for (size_t channelIndex = 0; channelIndex < numberOfChannels; ++channelIndex) { in push()
|
D | MultiChannelResampler.cpp | 46 ChannelProvider(AudioSourceProvider* multiChannelProvider, unsigned numberOfChannels) in ChannelProvider() argument 48 , m_numberOfChannels(numberOfChannels) in ChannelProvider() 58 bool isBusGood = bus && bus->numberOfChannels() == 1; in provideInput() 95 MultiChannelResampler::MultiChannelResampler(double scaleFactor, unsigned numberOfChannels) in MultiChannelResampler() argument 96 : m_numberOfChannels(numberOfChannels) in MultiChannelResampler() 99 for (unsigned channelIndex = 0; channelIndex < numberOfChannels; ++channelIndex) in MultiChannelResampler()
|
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/ |
D | AudioBuffer.cpp | 46 AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate) in create() argument 48 …idAudioBufferSampleRate(sampleRate) || numberOfChannels > AudioContext::maxNumberOfChannels() || !… in create() 51 AudioBuffer* buffer = new AudioBuffer(numberOfChannels, numberOfFrames, sampleRate); in create() 53 if (!buffer->createdSuccessfully(numberOfChannels)) in create() 58 AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate… in create() argument 60 if (!numberOfChannels || numberOfChannels > AudioContext::maxNumberOfChannels()) { in create() 65 numberOfChannels, in create() 96 AudioBuffer* audioBuffer = create(numberOfChannels, numberOfFrames, sampleRate); in create() 102 + String::number(numberOfChannels) + ", " in create() 116 if (buffer->createdSuccessfully(bus->numberOfChannels())) in createFromAudioFileData() [all …]
|
D | AudioNodeOutput.cpp | 37 inline AudioNodeOutput::AudioNodeOutput(AudioNode* node, unsigned numberOfChannels) in AudioNodeOutput() argument 39 , m_numberOfChannels(numberOfChannels) in AudioNodeOutput() 40 , m_desiredNumberOfChannels(numberOfChannels) in AudioNodeOutput() 49 ASSERT(numberOfChannels <= AudioContext::maxNumberOfChannels()); in AudioNodeOutput() 51 m_internalBus = AudioBus::create(numberOfChannels, AudioNode::ProcessingSizeInFrames); in AudioNodeOutput() 54 AudioNodeOutput* AudioNodeOutput::create(AudioNode* node, unsigned numberOfChannels) in create() argument 56 return new AudioNodeOutput(node, numberOfChannels); in create() 74 void AudioNodeOutput::setNumberOfChannels(unsigned numberOfChannels) in setNumberOfChannels() argument 76 ASSERT(numberOfChannels <= AudioContext::maxNumberOfChannels()); in setNumberOfChannels() 79 m_desiredNumberOfChannels = numberOfChannels; in setNumberOfChannels() [all …]
|
D | AudioBasicProcessorNode.cpp | 91 if (!isInitialized() || !processor() || processor()->numberOfChannels() != numberOfChannels()) in process() 126 unsigned numberOfChannels = input->numberOfChannels(); in checkNumberOfChannelsForInput() local 128 if (isInitialized() && numberOfChannels != output(0)->numberOfChannels()) { in checkNumberOfChannelsForInput() 135 output(0)->setNumberOfChannels(numberOfChannels); in checkNumberOfChannelsForInput() 138 processor()->setNumberOfChannels(numberOfChannels); in checkNumberOfChannelsForInput() 145 unsigned AudioBasicProcessorNode::numberOfChannels() in numberOfChannels() function in blink::AudioBasicProcessorNode 147 return output(0)->numberOfChannels(); in numberOfChannels()
|
D | AudioBufferSourceNode.cpp | 109 if (numberOfChannels() != buffer()->numberOfChannels()) { in process() 127 for (unsigned i = 0; i < outputBus->numberOfChannels(); ++i) in process() 152 for (unsigned i = 0; i < numberOfChannels(); ++i) in renderSilenceAndFinishIfNotLooping() 172 unsigned numberOfChannels = this->numberOfChannels(); in renderFromBuffer() local 173 unsigned busNumberOfChannels = bus->numberOfChannels(); in renderFromBuffer() 175 bool channelCountGood = numberOfChannels && numberOfChannels == busNumberOfChannels; in renderFromBuffer() 195 for (unsigned i = 0; i < numberOfChannels; ++i) in renderFromBuffer() 264 for (unsigned i = 0; i < numberOfChannels; ++i) in renderFromBuffer() 300 for (unsigned i = 0; i < numberOfChannels; ++i) { in renderFromBuffer() 343 unsigned numberOfChannels = buffer->numberOfChannels(); in setBuffer() local [all …]
|
D | MediaStreamAudioSourceNode.cpp | 70 void MediaStreamAudioSourceNode::setFormat(size_t numberOfChannels, float sourceSampleRate) in setFormat() argument 72 if (numberOfChannels != m_sourceNumberOfChannels || sourceSampleRate != sampleRate()) { in setFormat() 74 …if (!numberOfChannels || numberOfChannels > AudioContext::maxNumberOfChannels() || sourceSampleRat… in setFormat() 76 …setFormat(%u, %f) - unhandled format change", static_cast<unsigned>(numberOfChannels), sourceSampl… in setFormat() 84 m_sourceNumberOfChannels = numberOfChannels; in setFormat() 91 output(0)->setNumberOfChannels(numberOfChannels); in setFormat() 105 if (!mediaStream() || m_sourceNumberOfChannels != outputBus->numberOfChannels()) { in process()
|
D | OfflineAudioContext.cpp | 40 …xt* OfflineAudioContext::create(ExecutionContext* context, unsigned numberOfChannels, size_t numbe… in create() argument 57 if (numberOfChannels > AudioContext::maxNumberOfChannels()) { in create() 62 numberOfChannels, in create() 80 …CountedGarbageCollectedWillBeNoop(new OfflineAudioContext(document, numberOfChannels, numberOfFram… in create() 85 "OfflineAudioContext(" + String::number(numberOfChannels) in create() 95 OfflineAudioContext::OfflineAudioContext(Document* document, unsigned numberOfChannels, size_t numb… in OfflineAudioContext() argument 96 : AudioContext(document, numberOfChannels, numberOfFrames, sampleRate) in OfflineAudioContext()
|
D | MediaElementAudioSourceNode.cpp | 73 void MediaElementAudioSourceNode::setFormat(size_t numberOfChannels, float sourceSampleRate) in setFormat() argument 75 if (numberOfChannels != m_sourceNumberOfChannels || sourceSampleRate != m_sourceSampleRate) { in setFormat() 76 …if (!numberOfChannels || numberOfChannels > AudioContext::maxNumberOfChannels() || !AudioUtilities… in setFormat() 78 …setFormat(%u, %f) - unhandled format change", static_cast<unsigned>(numberOfChannels), sourceSampl… in setFormat() 84 m_sourceNumberOfChannels = numberOfChannels; in setFormat() 92 … m_multiChannelResampler = adoptPtr(new MultiChannelResampler(scaleFactor, numberOfChannels)); in setFormat() 103 output(0)->setNumberOfChannels(numberOfChannels); in setFormat()
|
D | MediaStreamAudioDestinationNode.cpp | 38 …nationNode* MediaStreamAudioDestinationNode::create(AudioContext* context, size_t numberOfChannels) in create() argument 40 …fCountedGarbageCollectedWillBeNoop(new MediaStreamAudioDestinationNode(context, numberOfChannels)); in create() 43 …dioDestinationNode::MediaStreamAudioDestinationNode(AudioContext* context, size_t numberOfChannels) in MediaStreamAudioDestinationNode() argument 44 : AudioBasicInspectorNode(context, context->sampleRate(), numberOfChannels) in MediaStreamAudioDestinationNode() 45 , m_mixBus(AudioBus::create(numberOfChannels, ProcessingSizeInFrames)) in MediaStreamAudioDestinationNode() 56 m_source->setAudioFormat(numberOfChannels, context->sampleRate()); in MediaStreamAudioDestinationNode()
|
D | OfflineAudioDestinationNode.cpp | 48 m_renderBus = AudioBus::create(renderTarget->numberOfChannels(), renderQuantumSize); in OfflineAudioDestinationNode() 107 bool channelsMatch = m_renderBus->numberOfChannels() == m_renderTarget->numberOfChannels(); in offlineRender() 120 unsigned numberOfChannels = m_renderTarget->numberOfChannels(); in offlineRender() local 129 for (unsigned channelIndex = 0; channelIndex < numberOfChannels; ++channelIndex) { in offlineRender()
|
D | WaveShaperProcessor.cpp | 35 WaveShaperProcessor::WaveShaperProcessor(float sampleRate, size_t numberOfChannels) in WaveShaperProcessor() argument 36 : AudioDSPKernelProcessor(sampleRate, numberOfChannels) in WaveShaperProcessor() 82 …bool channelCountMatches = source->numberOfChannels() == destination->numberOfChannels() && source… in process()
|
D | GainNode.cpp | 94 unsigned numberOfChannels = input->numberOfChannels(); in checkNumberOfChannelsForInput() local 96 if (isInitialized() && numberOfChannels != output(0)->numberOfChannels()) { in checkNumberOfChannelsForInput() 103 output(0)->setNumberOfChannels(numberOfChannels); in checkNumberOfChannelsForInput()
|
D | AudioBasicInspectorNode.cpp | 82 unsigned numberOfChannels = input->numberOfChannels(); in checkNumberOfChannelsForInput() local 84 if (numberOfChannels != output(0)->numberOfChannels()) { in checkNumberOfChannelsForInput() 86 output(0)->setNumberOfChannels(numberOfChannels); in checkNumberOfChannelsForInput()
|
D | ConvolverNode.cpp | 132 unsigned numberOfChannels = buffer->numberOfChannels(); in setBuffer() local 136 bool isBufferGood = numberOfChannels > 0 && numberOfChannels <= 4 && bufferLength; in setBuffer() 143 RefPtr<AudioBus> bufferBus = AudioBus::create(numberOfChannels, bufferLength, false); in setBuffer() 144 for (unsigned i = 0; i < numberOfChannels; ++i) in setBuffer()
|
D | ChannelMergerNode.cpp | 71 if (m_desiredNumberOfOutputChannels != output->numberOfChannels()) { in process() 78 unsigned maxAllowedOutputChannels = output->numberOfChannels(); in process() 83 unsigned numberOfInputChannels = input->bus()->numberOfChannels(); in process() 102 ASSERT(outputChannelIndex == output->numberOfChannels()); in process() 116 numberOfOutputChannels += input->numberOfChannels(); in checkNumberOfChannelsForInput()
|
D | AudioBuffer.h | 46 static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate); 47 …static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, Exc… 60 unsigned numberOfChannels() const { return m_channels.size(); } in numberOfChannels() function 70 AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
|
/external/chromium_org/third_party/WebKit/Source/platform/exported/ |
D | WebAudioBus.cpp | 47 void WebAudioBus::initialize(unsigned numberOfChannels, size_t length, double sampleRate) in initialize() argument 50 RefPtr<AudioBus> audioBus = AudioBus::create(numberOfChannels, length); in initialize() 88 unsigned WebAudioBus::numberOfChannels() const in numberOfChannels() function in blink::WebAudioBus 93 return m_private->numberOfChannels(); in numberOfChannels() 129 ASSERT(channelIndex < numberOfChannels()); in channelData()
|
D | WebMediaStreamSource.cpp | 176 virtual void setFormat(size_t numberOfChannels, float sampleRate) OVERRIDE; 188 void ConsumerWrapper::setFormat(size_t numberOfChannels, float sampleRate) in setFormat() argument 190 m_consumer->setFormat(numberOfChannels, sampleRate); in setFormat() 199 size_t numberOfChannels = bus->numberOfChannels(); in consumeAudio() local 200 WebVector<const float*> busVector(numberOfChannels); in consumeAudio() 201 for (size_t i = 0; i < numberOfChannels; ++i) in consumeAudio()
|
/external/aac/libAACdec/src/ |
D | channel.cpp | 235 const UCHAR numberOfChannels, in CChannelElement_Read() argument 245 FDK_ASSERT( (numberOfChannels == 1) || (numberOfChannels == 2) ); in CChannelElement_Read() 248 list = getBitstreamElementList(aot, epConfig, numberOfChannels, 0); in CChannelElement_Read() 255 if (numberOfChannels == 2) { in CChannelElement_Read() 261 if (numberOfChannels == 2) { in CChannelElement_Read() 264 if (numberOfChannels == 2) { in CChannelElement_Read() 277 if (numberOfChannels == 2) { in CChannelElement_Read() 283 if (numberOfChannels == 2) { in CChannelElement_Read() 294 if (numberOfChannels == 2 && pAacDecoderChannelInfo[0]->pDynData->RawDataInfo.CommonWindow) { in CChannelElement_Read() 429 ch = (ch + 1) % numberOfChannels; in CChannelElement_Read()
|