Chromium Code Reviews

Unified Diff: webrtc/modules/audio_processing/utility/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: Corrected order of includes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/modules/audio_processing/utility/ring_buffer.h
diff --git a/webrtc/common_audio/ring_buffer.h b/webrtc/modules/audio_processing/utility/ring_buffer.h
similarity index 89%
rename from webrtc/common_audio/ring_buffer.h
rename to webrtc/modules/audio_processing/utility/ring_buffer.h
index 4125c48d0116b5215ff7c61673398d412c5ec0b0..accd26e431eca855d4d8686851113ca7ac33af02 100644
--- a/webrtc/common_audio/ring_buffer.h
+++ b/webrtc/modules/audio_processing/utility/ring_buffer.h
@@ -11,8 +11,8 @@
// A ring buffer to hold arbitrary data. Provides no thread safety. Unless
// otherwise specified, functions return 0 on success and -1 on error.
-#ifndef WEBRTC_COMMON_AUDIO_RING_BUFFER_H_
-#define WEBRTC_COMMON_AUDIO_RING_BUFFER_H_
+#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_RING_BUFFER_H_
+#define WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_RING_BUFFER_H_
#ifdef __cplusplus
extern "C" {
@@ -43,7 +43,8 @@ size_t WebRtc_ReadBuffer(RingBuffer* handle,
size_t element_count);
// Writes |data| to buffer and returns the number of elements written.
-size_t WebRtc_WriteBuffer(RingBuffer* handle, const void* data,
+size_t WebRtc_WriteBuffer(RingBuffer* handle,
+ const void* data,
size_t element_count);
// Moves the buffer read position and returns the number of elements moved.
@@ -63,4 +64,4 @@ size_t WebRtc_available_write(const RingBuffer* handle);
}
#endif
-#endif // WEBRTC_COMMON_AUDIO_RING_BUFFER_H_
+#endif // WEBRTC_MODULES_AUDIO_PROCESSING_UTILITY_RING_BUFFER_H_

Powered by Google App Engine