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

Side by Side Diff: webrtc/modules/audio_processing/utility/audio_ring_buffer.h

Issue 1846903004: Moved ring-buffer related files from common_audio to audio_processing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 years, 8 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #ifndef WEBRTC_COMMON_AUDIO_AUDIO_RING_BUFFER_H_ 10 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_AUDIO_RING_BUFFER_H_
11 #define WEBRTC_COMMON_AUDIO_AUDIO_RING_BUFFER_H_ 11 #define WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_AUDIO_RING_BUFFER_H_
12 12
13 #include <stddef.h> 13 #include <stddef.h>
14 #include <vector> 14 #include <vector>
15 15
16 struct RingBuffer; 16 struct RingBuffer;
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 // A ring buffer tailored for float deinterleaved audio. Any operation that 20 // A ring buffer tailored for float deinterleaved audio. Any operation that
21 // cannot be performed as requested will cause a crash (e.g. insufficient data 21 // cannot be performed as requested will cause a crash (e.g. insufficient data
(...skipping 23 matching lines...) Expand all
45 void MoveReadPositionForward(size_t frames); 45 void MoveReadPositionForward(size_t frames);
46 void MoveReadPositionBackward(size_t frames); 46 void MoveReadPositionBackward(size_t frames);
47 47
48 private: 48 private:
49 // TODO(kwiberg): Use std::vector<std::unique_ptr<RingBuffer>> instead. 49 // TODO(kwiberg): Use std::vector<std::unique_ptr<RingBuffer>> instead.
50 std::vector<RingBuffer*> buffers_; 50 std::vector<RingBuffer*> buffers_;
51 }; 51 };
52 52
53 } // namespace webrtc 53 } // namespace webrtc
54 54
55 #endif // WEBRTC_COMMON_AUDIO_AUDIO_RING_BUFFER_H_ 55 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_AUDIO_RING_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698