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

Unified Diff: ppapi/cpp/media_stream_audio_track.cc

Issue 156863005: [PPAPI][MediaStream] Rename AudioFrame to AudioBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@frame_to_buffer
Patch Set: Update Created 6 years, 10 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 | « ppapi/cpp/media_stream_audio_track.h ('k') | ppapi/cpp/media_stream_video_track.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/media_stream_audio_track.cc
diff --git a/ppapi/cpp/media_stream_audio_track.cc b/ppapi/cpp/media_stream_audio_track.cc
index 9fb41d358659c05e9874becc6fc806795a2b340c..a233bbd046f967125cd51b5bf8701bfadb73f385 100644
--- a/ppapi/cpp/media_stream_audio_track.cc
+++ b/ppapi/cpp/media_stream_audio_track.cc
@@ -6,7 +6,7 @@
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/ppb_media_stream_audio_track.h"
-#include "ppapi/cpp/audio_frame.h"
+#include "ppapi/cpp/audio_buffer.h"
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/module_impl.h"
#include "ppapi/cpp/var.h"
@@ -77,19 +77,19 @@ bool MediaStreamAudioTrack::HasEnded() const {
return true;
}
-int32_t MediaStreamAudioTrack::GetFrame(
- const CompletionCallbackWithOutput<AudioFrame>& callback) {
+int32_t MediaStreamAudioTrack::GetBuffer(
+ const CompletionCallbackWithOutput<AudioBuffer>& callback) {
if (has_interface<PPB_MediaStreamAudioTrack_0_1>()) {
- return get_interface<PPB_MediaStreamAudioTrack_0_1>()->GetFrame(
+ return get_interface<PPB_MediaStreamAudioTrack_0_1>()->GetBuffer(
pp_resource(), callback.output(), callback.pp_completion_callback());
}
return callback.MayForce(PP_ERROR_NOINTERFACE);
}
-int32_t MediaStreamAudioTrack::RecycleFrame(const AudioFrame& frame) {
+int32_t MediaStreamAudioTrack::RecycleBuffer(const AudioBuffer& buffer) {
if (has_interface<PPB_MediaStreamAudioTrack_0_1>()) {
- return get_interface<PPB_MediaStreamAudioTrack_0_1>()->RecycleFrame(
- pp_resource(), frame.pp_resource());
+ return get_interface<PPB_MediaStreamAudioTrack_0_1>()->RecycleBuffer(
+ pp_resource(), buffer.pp_resource());
}
return PP_ERROR_NOINTERFACE;
}
« no previous file with comments | « ppapi/cpp/media_stream_audio_track.h ('k') | ppapi/cpp/media_stream_video_track.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698