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

Unified Diff: webrtc/modules/utility/include/file_player.h

Issue 2250643004: Rename NewFilePlayer to its original name, CreateFilePlayer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@remove7
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | webrtc/modules/utility/source/file_player.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/utility/include/file_player.h
diff --git a/webrtc/modules/utility/include/file_player.h b/webrtc/modules/utility/include/file_player.h
index b98e0966749b646ca9ba59121a809a9bd30f46e4..2797a3d9183ba62de8ac8cd3c64a05ce1a993f83 100644
--- a/webrtc/modules/utility/include/file_player.h
+++ b/webrtc/modules/utility/include/file_player.h
@@ -29,10 +29,17 @@ class FilePlayer {
enum { MAX_AUDIO_BUFFER_IN_BYTES = MAX_AUDIO_BUFFER_IN_SAMPLES * 2 };
// Note: will return NULL for unsupported formats.
- static std::unique_ptr<FilePlayer> NewFilePlayer(
+ static std::unique_ptr<FilePlayer> CreateFilePlayer(
const uint32_t instanceID,
const FileFormats fileFormat);
+ // Deprecated. Call CreateFilePlayer instead.
+ static std::unique_ptr<FilePlayer> NewFilePlayer(
+ const uint32_t instanceID,
+ const FileFormats fileFormat) {
+ return CreateFilePlayer(instanceID, fileFormat);
+ }
+
virtual ~FilePlayer() = default;
// Read 10 ms of audio at |frequencyInHz| to |outBuffer|. |lengthInSamples|
« no previous file with comments | « no previous file | webrtc/modules/utility/source/file_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698