Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/WebKit/Source/platform/audio/AudioResamplerKernel.h

Issue 2384073002: reflow comments in platform/audio (Closed)
Patch Set: comments (heh!) Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/audio/AudioResamplerKernel.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.h b/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.h
index 282d697a761bbba7a75690081ecc0c41abfed3ec..d7d8493be82bf58fa36747dcba7b9ecf688ce7eb 100644
--- a/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.h
+++ b/third_party/WebKit/Source/platform/audio/AudioResamplerKernel.h
@@ -10,16 +10,17 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
*/
#ifndef AudioResamplerKernel_h
@@ -44,15 +45,18 @@ class PLATFORM_EXPORT AudioResamplerKernel {
AudioResamplerKernel(AudioResampler*);
// getSourcePointer() should be called each time before process() is called.
- // Given a number of frames to process (for subsequent call to process()), it returns a pointer and numberOfSourceFramesNeeded
- // where sample data should be copied. This sample data provides the input to the resampler when process() is called.
- // framesToProcess must be less than or equal to MaxFramesToProcess.
+ // Given a number of frames to process (for subsequent call to process()), it
+ // returns a pointer and numberOfSourceFramesNeeded where sample data should
+ // be copied. This sample data provides the input to the resampler when
+ // process() is called. framesToProcess must be less than or equal to
+ // MaxFramesToProcess.
float* getSourcePointer(size_t framesToProcess,
size_t* numberOfSourceFramesNeeded);
- // process() resamples framesToProcess frames from the source into destination.
- // Each call to process() must be preceded by a call to getSourcePointer() so that source input may be supplied.
- // framesToProcess must be less than or equal to MaxFramesToProcess.
+ // process() resamples framesToProcess frames from the source into
+ // destination. Each call to process() must be preceded by a call to
+ // getSourcePointer() so that source input may be supplied. framesToProcess
+ // must be less than or equal to MaxFramesToProcess.
void process(float* destination, size_t framesToProcess);
// Resets the processing state.
@@ -70,9 +74,10 @@ class PLATFORM_EXPORT AudioResamplerKernel {
double m_virtualReadIndex;
// We need to have continuity from one call of process() to the next.
- // m_lastValues stores the last two sample values from the last call to process().
- // m_fillIndex represents how many buffered samples we have which can be as many as 2.
- // For the first call to process() (or after reset()) there will be no buffered samples.
+ // m_lastValues stores the last two sample values from the last call to
+ // process(). m_fillIndex represents how many buffered samples we have which
+ // can be as many as 2. For the first call to process() (or after reset())
+ // there will be no buffered samples.
float m_lastValues[2];
unsigned m_fillIndex;
};

Powered by Google App Engine
This is Rietveld 408576698