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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioFIFO.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/AudioFIFO.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioFIFO.h b/third_party/WebKit/Source/platform/audio/AudioFIFO.h
index 36b2022c1b0ccaddeb425ab14ed4ea5dc1346658..ef66f92a98521d0127bff757ecaafb75beaaaed1 100644
--- a/third_party/WebKit/Source/platform/audio/AudioFIFO.h
+++ b/third_party/WebKit/Source/platform/audio/AudioFIFO.h
@@ -39,21 +39,23 @@ class AudioFIFO {
WTF_MAKE_NONCOPYABLE(AudioFIFO);
public:
- // Create a FIFO large enough to hold |fifoLength| frames of data of |numberOfChannels| channels.
+ // Create a FIFO large enough to hold |fifoLength| frames of data of
+ // |numberOfChannels| channels.
AudioFIFO(unsigned numberOfChannels, size_t fifoLength);
// Push the data from the bus into the FIFO.
void push(const AudioBus*);
- // Consume |framesToConsume| frames of data from the FIFO and put them in |destination|. The
- // corresponding frames are removed from the FIFO.
+ // Consume |framesToConsume| frames of data from the FIFO and put them in
+ // |destination|. The corresponding frames are removed from the FIFO.
void consume(AudioBus* destination, size_t framesToConsume);
// Number of frames of data that are currently in the FIFO.
size_t framesInFifo() const { return m_framesInFifo; }
private:
- // Update the FIFO index by the step, with appropriate wrapping around the endpoint.
+ // Update the FIFO index by the step, with appropriate wrapping around the
+ // endpoint.
int updateIndex(int index, int step) { return (index + step) % m_fifoLength; }
void findWrapLengths(size_t index,
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioDestination.cpp ('k') | third_party/WebKit/Source/platform/audio/AudioFIFO.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698