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

Side by Side Diff: third_party/WebKit/Source/platform/audio/UpSampler.h

Issue 2384073002: reflow comments in platform/audio (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void reset(); 55 void reset();
56 56
57 // Latency based on the source sample-rate. 57 // Latency based on the source sample-rate.
58 size_t latencyFrames() const; 58 size_t latencyFrames() const;
59 59
60 private: 60 private:
61 enum { DefaultKernelSize = 128 }; 61 enum { DefaultKernelSize = 128 };
62 62
63 size_t m_inputBlockSize; 63 size_t m_inputBlockSize;
64 64
65 // Computes ideal band-limited filter coefficients to sample in between each s ource sample-frame. 65 // Computes ideal band-limited filter coefficients to sample in between each
66 // This filter will be used to compute the odd sample-frames of the output. 66 // source sample-frame. This filter will be used to compute the odd
67 // sample-frames of the output.
67 void initializeKernel(); 68 void initializeKernel();
68 AudioFloatArray m_kernel; 69 AudioFloatArray m_kernel;
69 70
70 // Computes the odd sample-frames of the output. 71 // Computes the odd sample-frames of the output.
71 DirectConvolver m_convolver; 72 DirectConvolver m_convolver;
72 73
73 AudioFloatArray m_tempBuffer; 74 AudioFloatArray m_tempBuffer;
74 75
75 // Delay line for generating the even sample-frames of the output. 76 // Delay line for generating the even sample-frames of the output.
76 // The source samples are delayed exactly to match the linear phase delay of t he FIR filter (convolution) 77 // The source samples are delayed exactly to match the linear phase delay of
77 // used to generate the odd sample-frames of the output. 78 // the FIR filter (convolution) used to generate the odd sample-frames of the
79 // output.
78 AudioFloatArray m_inputBuffer; 80 AudioFloatArray m_inputBuffer;
79 }; 81 };
80 82
81 } // namespace blink 83 } // namespace blink
82 84
83 #endif // UpSampler_h 85 #endif // UpSampler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698