HomeSort by relevance Sort by last modified time
    Searched refs:numberOfFrames (Results 1 - 25 of 40) sorted by null

1 2

  /external/chromium_org/third_party/WebKit/Source/platform/audio/
ReverbInputBuffer.cpp 43 void ReverbInputBuffer::write(const float* sourceP, size_t numberOfFrames)
46 bool isCopySafe = m_writeIndex + numberOfFrames <= bufferLength;
51 memcpy(m_buffer.data() + m_writeIndex, sourceP, sizeof(float) * numberOfFrames);
53 m_writeIndex += numberOfFrames;
60 float* ReverbInputBuffer::directReadFrom(int* readIndex, size_t numberOfFrames)
63 bool isPointerGood = readIndex && *readIndex >= 0 && *readIndex + numberOfFrames <= bufferLength;
76 *readIndex = (*readIndex + numberOfFrames) % bufferLength;
ReverbAccumulationBuffer.cpp 48 void ReverbAccumulationBuffer::readAndClear(float* destination, size_t numberOfFrames)
51 bool isCopySafe = m_readIndex <= bufferLength && numberOfFrames <= bufferLength;
58 size_t numberOfFrames1 = std::min(numberOfFrames, framesAvailable);
59 size_t numberOfFrames2 = numberOfFrames - numberOfFrames1;
71 m_readIndex = (m_readIndex + numberOfFrames) % bufferLength;
72 m_readTimeFrame += numberOfFrames;
75 void ReverbAccumulationBuffer::updateReadIndex(int* readIndex, size_t numberOfFrames) const
78 *readIndex = (*readIndex + numberOfFrames) % m_buffer.size();
81 int ReverbAccumulationBuffer::accumulate(float* source, size_t numberOfFrames, int* readIndex, size_t delayFrames)
88 *readIndex = (*readIndex + numberOfFrames) % bufferLength
    [all...]
ReverbAccumulationBuffer.h 44 // This will read from, then clear-out numberOfFrames
45 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;
ReverbInputBuffer.h 43 // The assumption is that the buffer's length is evenly divisible by numberOfFrames (for nearly all cases this will be fine).
44 // FIXME: remove numberOfFrames restriction...
45 void write(const float* sourceP, size_t numberOfFrames);
52 // The assumption is that the buffer's length is evenly divisible by numberOfFrames.
53 // FIXME: remove numberOfFrames restriction...
54 float* directReadFrom(int* readIndex, size_t numberOfFrames);
AudioDestinationConsumer.h 44 virtual void consumeAudio(AudioBus*, size_t numberOfFrames) = 0;
AudioDelayDSPKernel.h 42 void setDelayFrames(double numberOfFrames) { m_desiredDelayFrames = numberOfFrames; }
AudioPullFIFO.h 56 // Fill the FIFO buffer with at least |numberOfFrames| more data.
57 void fillBuffer(size_t numberOfFrames);
AudioDestination.cpp 138 void AudioDestination::render(const WebVector<float*>& sourceData, const WebVector<float*>& audioData, size_t numberOfFrames)
146 bool isBufferSizeGood = numberOfFrames == m_callbackBufferSize;
155 RefPtr<AudioBus> wrapperBus = AudioBus::create(2, numberOfFrames, false);
156 wrapperBus->setChannelMemory(0, sourceData[0], numberOfFrames);
157 wrapperBus->setChannelMemory(1, sourceData[1], numberOfFrames);
162 m_renderBus->setChannelMemory(i, audioData[i], numberOfFrames);
164 m_fifo->consume(m_renderBus.get(), numberOfFrames);
AudioPullFIFO.cpp 58 void AudioPullFIFO::fillBuffer(size_t numberOfFrames)
60 // Keep asking the provider to give us data until we have received at least |numberOfFrames| of
64 while (framesProvided < numberOfFrames) {
AudioDestination.h 64 virtual void render(const WebVector<float*>& sourceData, const WebVector<float*>& audioData, size_t numberOfFrames) OVERRIDE;
  /external/chromium_org/third_party/WebKit/Source/platform/exported/
WebAudioDevice.cpp 30 void WebAudioDevice::RenderCallback::render(const WebVector<float*>& sourceData, const WebVector<float*>& destinationData, size_t numberOfFrames)
WebMediaStreamSource.cpp 177 virtual void consumeAudio(AudioBus*, size_t numberOfFrames) OVERRIDE;
193 void ConsumerWrapper::consumeAudio(AudioBus* bus, size_t numberOfFrames)
204 m_consumer->consumeAudio(busVector, numberOfFrames);
  /external/chromium_org/third_party/WebKit/public/platform/
WebAudioDestinationConsumer.h 38 // The size of the vector is the number of audio channels, and numberOfFrames is the
40 virtual void consumeAudio(const WebVector<const float*>&, size_t numberOfFrames) = 0;
WebAudioSourceProvider.h 40 virtual void provideInput(const WebVector<float*>& audioData, size_t numberOfFrames) = 0;
WebAudioDevice.h 43 virtual void render(const WebVector<float*>& sourceData, const WebVector<float*>& destinationData, size_t numberOfFrames);
  /external/chromium_org/third_party/WebKit/Source/modules/webaudio/
OfflineAudioContext.h 37 static OfflineAudioContext* create(ExecutionContext*, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState&);
42 OfflineAudioContext(Document*, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
OfflineAudioContext.idl 27 Constructor(unsigned long numberOfChannels, unsigned long numberOfFrames, float sampleRate),
AudioDestinationNode.cpp 59 void AudioDestinationNode::render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames)
82 AudioBus* renderedBus = input(0)->pull(destinationBus, numberOfFrames);
92 context()->processAutomaticPullNodes(numberOfFrames);
98 m_currentSampleFrame += numberOfFrames;
OfflineAudioContext.cpp 40 OfflineAudioContext* OfflineAudioContext::create(ExecutionContext* context, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState& exceptionState)
52 if (!numberOfFrames) {
80 OfflineAudioContext* audioContext = adoptRefCountedGarbageCollectedWillBeNoop(new OfflineAudioContext(document, numberOfChannels, numberOfFrames, sampleRate));
86 + ", " + String::number(numberOfFrames)
95 OfflineAudioContext::OfflineAudioContext(Document* document, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
96 : AudioContext(document, numberOfChannels, numberOfFrames, sampleRate)
AudioDestinationNode.h 51 virtual void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames) OVERRIDE FINAL;
77 virtual void provideInput(AudioBus* destinationBus, size_t numberOfFrames) OVERRIDE
79 bool isGood = destinationBus && destinationBus->length() == numberOfFrames && m_sourceBus->length() == numberOfFrames;
AudioBuffer.cpp 46 AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
48 if (!AudioUtilities::isValidAudioBufferSampleRate(sampleRate) || numberOfChannels > AudioContext::maxNumberOfChannels() || !numberOfChannels || !numberOfFrames)
51 AudioBuffer* buffer = new AudioBuffer(numberOfChannels, numberOfFrames, sampleRate);
58 AudioBuffer* AudioBuffer::create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState& exceptionState)
86 if (!numberOfFrames) {
91 numberOfFrames,
96 AudioBuffer* audioBuffer = create(numberOfChannels, numberOfFrames, sampleRate);
103 + String::number(numberOfFrames) + ", "
138 AudioBuffer::AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate)
140 , m_length(numberOfFrames)
    [all...]
AudioBuffer.h 46 static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
47 static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState&);
70 AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
MediaElementAudioSourceNode.cpp 108 void MediaElementAudioSourceNode::process(size_t numberOfFrames)
125 m_multiChannelResampler->process(provider, outputBus, numberOfFrames);
129 provider->provideInput(outputBus, numberOfFrames);
MediaStreamAudioDestinationNode.cpp 78 void MediaStreamAudioDestinationNode::process(size_t numberOfFrames)
81 m_source->consumeAudio(m_mixBus.get(), numberOfFrames);
MediaStreamAudioSourceNode.cpp 96 void MediaStreamAudioSourceNode::process(size_t numberOfFrames)
115 audioSourceProvider()->provideInput(outputBus, numberOfFrames);

Completed in 281 milliseconds

1 2