OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:virtualReadIndex
(Results
1 - 3
of
3
) sorted by null
/external/chromium_org/third_party/WebKit/Source/platform/audio/
AudioResamplerKernel.cpp
93
double
virtualReadIndex
= m_virtualReadIndex;
97
ASSERT(
virtualReadIndex
>= 0 && 1 + static_cast<unsigned>(
virtualReadIndex
+ (framesToProcess - 1) * rate) < m_sourceBuffer.size());
102
unsigned readIndex = static_cast<unsigned>(
virtualReadIndex
);
103
double interpolationFactor =
virtualReadIndex
- readIndex;
112
virtualReadIndex
+= rate;
116
int readIndex = static_cast<int>(
virtualReadIndex
);
122
virtualReadIndex
-= readIndex;
125
m_virtualReadIndex =
virtualReadIndex
;
/external/chromium_org/third_party/WebKit/Source/modules/webaudio/
AudioBufferSourceNode.cpp
246
double
virtualReadIndex
= m_virtualReadIndex;
256
if (pitchRate == 1 &&
virtualReadIndex
== floor(
virtualReadIndex
)
259
unsigned readIndex = static_cast<unsigned>(
virtualReadIndex
);
281
virtualReadIndex
= readIndex;
284
unsigned readIndex = static_cast<unsigned>(
virtualReadIndex
);
285
double interpolationFactor =
virtualReadIndex
- readIndex;
292
readIndex2 = static_cast<unsigned>(
virtualReadIndex
+ 1 - virtualDeltaFrames);
315
virtualReadIndex
+= pitchRate;
317
// Wrap-around, retaining sub-sample position since
virtualReadIndex
is floating-point
[
all
...]
OscillatorNode.cpp
262
// We keep
virtualReadIndex
double-precision since we're accumulating values.
263
double
virtualReadIndex
= m_virtualReadIndex;
292
unsigned readIndex = static_cast<unsigned>(
virtualReadIndex
);
312
float interpolationFactor = static_cast<float>(
virtualReadIndex
) - readIndex;
321
// Increment virtual read index and wrap
virtualReadIndex
into the range 0 -> periodicWaveSize.
322
virtualReadIndex
+= incr;
323
virtualReadIndex
-= floor(
virtualReadIndex
* invPeriodicWaveSize) * periodicWaveSize;
326
m_virtualReadIndex =
virtualReadIndex
;
Completed in 296 milliseconds