Home
last modified time | relevance | path

Searched refs:numberOfFrames (Results 1 – 25 of 34) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/platform/audio/
DReverbAccumulationBuffer.cpp48 void ReverbAccumulationBuffer::readAndClear(float* destination, size_t numberOfFrames) in readAndClear() argument
51 bool isCopySafe = m_readIndex <= bufferLength && numberOfFrames <= bufferLength; in readAndClear()
58 size_t numberOfFrames1 = std::min(numberOfFrames, framesAvailable); in readAndClear()
59 size_t numberOfFrames2 = numberOfFrames - numberOfFrames1; in readAndClear()
71 m_readIndex = (m_readIndex + numberOfFrames) % bufferLength; in readAndClear()
72 m_readTimeFrame += numberOfFrames; in readAndClear()
75 void ReverbAccumulationBuffer::updateReadIndex(int* readIndex, size_t numberOfFrames) const in updateReadIndex()
78 *readIndex = (*readIndex + numberOfFrames) % m_buffer.size(); in updateReadIndex()
81 int ReverbAccumulationBuffer::accumulate(float* source, size_t numberOfFrames, int* readIndex, size… in accumulate() argument
88 *readIndex = (*readIndex + numberOfFrames) % bufferLength; in accumulate()
[all …]
DReverbInputBuffer.cpp43 void ReverbInputBuffer::write(const float* sourceP, size_t numberOfFrames) in write() argument
46 bool isCopySafe = m_writeIndex + numberOfFrames <= bufferLength; in write()
51 memcpy(m_buffer.data() + m_writeIndex, sourceP, sizeof(float) * numberOfFrames); in write()
53 m_writeIndex += numberOfFrames; in write()
60 float* ReverbInputBuffer::directReadFrom(int* readIndex, size_t numberOfFrames) in directReadFrom() argument
63 … bool isPointerGood = readIndex && *readIndex >= 0 && *readIndex + numberOfFrames <= bufferLength; in directReadFrom()
76 *readIndex = (*readIndex + numberOfFrames) % bufferLength; in directReadFrom()
DAudioDestination.cpp138 …der(const WebVector<float*>& sourceData, const WebVector<float*>& audioData, size_t numberOfFrames) in render() argument
146 bool isBufferSizeGood = numberOfFrames == m_callbackBufferSize; in render()
155 RefPtr<AudioBus> wrapperBus = AudioBus::create(2, numberOfFrames, false); in render()
156 wrapperBus->setChannelMemory(0, sourceData[0], numberOfFrames); in render()
157 wrapperBus->setChannelMemory(1, sourceData[1], numberOfFrames); in render()
162 m_renderBus->setChannelMemory(i, audioData[i], numberOfFrames); in render()
164 m_fifo->consume(m_renderBus.get(), numberOfFrames); in render()
DReverbAccumulationBuffer.h45 void readAndClear(float* destination, size_t numberOfFrames);
51 int accumulate(float* source, size_t numberOfFrames, int* readIndex, size_t delayFrames);
54 void updateReadIndex(int* readIndex, size_t numberOfFrames) const;
DReverbInputBuffer.h45 void write(const float* sourceP, size_t numberOfFrames);
54 float* directReadFrom(int* readIndex, size_t numberOfFrames);
DAudioPullFIFO.cpp58 void AudioPullFIFO::fillBuffer(size_t numberOfFrames) in fillBuffer() argument
64 while (framesProvided < numberOfFrames) { in fillBuffer()
DAudioDelayDSPKernel.h42 void setDelayFrames(double numberOfFrames) { m_desiredDelayFrames = numberOfFrames; } in setDelayFrames() argument
DAudioDestinationConsumer.h44 virtual void consumeAudio(AudioBus*, size_t numberOfFrames) = 0;
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
DAudioBuffer.cpp46 AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate) in create() argument
48 … || numberOfChannels > AudioContext::maxNumberOfChannels() || !numberOfChannels || !numberOfFrames) in create()
51 AudioBuffer* buffer = new AudioBuffer(numberOfChannels, numberOfFrames, sampleRate); in create()
58 AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate… in create() argument
86 if (!numberOfFrames) { in create()
91 numberOfFrames, in create()
96 AudioBuffer* audioBuffer = create(numberOfChannels, numberOfFrames, sampleRate); in create()
103 + String::number(numberOfFrames) + ", " in create()
138 AudioBuffer::AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate) in AudioBuffer() argument
140 , m_length(numberOfFrames) in AudioBuffer()
DOfflineAudioContext.cpp40 …:create(ExecutionContext* context, unsigned numberOfChannels, size_t numberOfFrames, float sampleR… in create() argument
52 if (!numberOfFrames) { in create()
80 …llectedWillBeNoop(new OfflineAudioContext(document, numberOfChannels, numberOfFrames, sampleRate)); in create()
86 + ", " + String::number(numberOfFrames) in create()
95 …neAudioContext(Document* document, unsigned numberOfChannels, size_t numberOfFrames, float sampleR… in OfflineAudioContext() argument
96 : AudioContext(document, numberOfChannels, numberOfFrames, sampleRate) in OfflineAudioContext()
DAudioDestinationNode.cpp59 … AudioDestinationNode::render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames) in render() argument
82 AudioBus* renderedBus = input(0)->pull(destinationBus, numberOfFrames); in render()
92 context()->processAutomaticPullNodes(numberOfFrames); in render()
98 m_currentSampleFrame += numberOfFrames; in render()
DAudioDestinationNode.h51 …virtual void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames) OVERRIDE…
77 virtual void provideInput(AudioBus* destinationBus, size_t numberOfFrames) OVERRIDE in provideInput() argument
79 …= destinationBus && destinationBus->length() == numberOfFrames && m_sourceBus->length() == numberO… in provideInput()
DAudioBuffer.h46 static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
47 …static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, Exc…
70 AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
DOfflineAudioContext.h37 …Context* create(ExecutionContext*, unsigned numberOfChannels, size_t numberOfFrames, float sampleR…
42 …OfflineAudioContext(Document*, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
DMediaElementAudioSourceNode.cpp108 void MediaElementAudioSourceNode::process(size_t numberOfFrames) in process() argument
125 m_multiChannelResampler->process(provider, outputBus, numberOfFrames); in process()
129 provider->provideInput(outputBus, numberOfFrames); in process()
DMediaStreamAudioDestinationNode.cpp78 void MediaStreamAudioDestinationNode::process(size_t numberOfFrames) in process() argument
81 m_source->consumeAudio(m_mixBus.get(), numberOfFrames); in process()
DMediaStreamAudioSourceNode.cpp96 void MediaStreamAudioSourceNode::process(size_t numberOfFrames) in process() argument
115 audioSourceProvider()->provideInput(outputBus, numberOfFrames); in process()
DAudioBufferSourceNode.cpp162 …SourceNode::renderFromBuffer(AudioBus* bus, unsigned destinationFrameOffset, size_t numberOfFrames) in renderFromBuffer() argument
183 bool isLengthGood = destinationLength <= 4096 && numberOfFrames <= 4096; in renderFromBuffer()
188 …tinationFrameOffset <= destinationLength && destinationFrameOffset + numberOfFrames <= destination… in renderFromBuffer()
246 int framesToProcess = numberOfFrames; in renderFromBuffer()
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebMediaStreamSource.cpp177 virtual void consumeAudio(AudioBus*, size_t numberOfFrames) OVERRIDE;
193 void ConsumerWrapper::consumeAudio(AudioBus* bus, size_t numberOfFrames) in consumeAudio() argument
204 m_consumer->consumeAudio(busVector, numberOfFrames); in consumeAudio()
DWebAudioDevice.cpp30 …nst WebVector<float*>& sourceData, const WebVector<float*>& destinationData, size_t numberOfFrames) in render() argument
/external/chromium_org/third_party/WebKit/Source/platform/mediastream/
DMediaStreamSource.cpp98 void MediaStreamSource::consumeAudio(AudioBus* bus, size_t numberOfFrames) in consumeAudio() argument
103 (*it)->consumeAudio(bus, numberOfFrames); in consumeAudio()
/external/chromium_org/v8/benchmarks/spinning-balls/
Dv.js60 var numberOfFrames = 0; variable
363 numberOfFrames++;
375 Math.round(numberOfFrames * 1000 / sumOfSquaredPauses);
417 numberOfFrames + " frames";
/external/chromium_org/third_party/WebKit/public/platform/
DWebAudioDestinationConsumer.h40 virtual void consumeAudio(const WebVector<const float*>&, size_t numberOfFrames) = 0;
DWebAudioSourceProvider.h40 virtual void provideInput(const WebVector<float*>& audioData, size_t numberOfFrames) = 0;
DWebAudioDevice.h43 …st WebVector<float*>& sourceData, const WebVector<float*>& destinationData, size_t numberOfFrames);

12