| Index: ppapi/thunk/ppb_audio_frame_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_audio_frame_thunk.cc b/ppapi/thunk/ppb_audio_frame_thunk.cc
|
| index fa4d865df79b4eaae3c3a2986622f510a72bf1d3..86d0c7c5875ec71c9fe828aca9f4a6ce094d64a0 100644
|
| --- a/ppapi/thunk/ppb_audio_frame_thunk.cc
|
| +++ b/ppapi/thunk/ppb_audio_frame_thunk.cc
|
| @@ -2,16 +2,14 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// From ppb_audio_frame.idl modified Mon Jan 13 11:39:02 2014.
|
| +// From ppb_audio_frame.idl modified Thu Jan 16 15:40:04 2014.
|
|
|
| #include "ppapi/c/pp_errors.h"
|
| #include "ppapi/c/ppb_audio_frame.h"
|
| #include "ppapi/shared_impl/tracked_callback.h"
|
| #include "ppapi/thunk/enter.h"
|
| +#include "ppapi/thunk/ppapi_thunk_export.h"
|
| #include "ppapi/thunk/ppb_audio_frame_api.h"
|
| -#include "ppapi/thunk/ppb_instance_api.h"
|
| -#include "ppapi/thunk/resource_creation_api.h"
|
| -#include "ppapi/thunk/thunk.h"
|
|
|
| namespace ppapi {
|
| namespace thunk {
|
| @@ -40,6 +38,14 @@ void SetTimestamp(PP_Resource frame, PP_TimeDelta timestamp) {
|
| enter.object()->SetTimestamp(timestamp);
|
| }
|
|
|
| +PP_AudioSampleRate GetSampleRate(PP_Resource frame) {
|
| + VLOG(4) << "PPB_AudioFrame::GetSampleRate()";
|
| + EnterResource<PPB_AudioFrame_API> enter(frame, true);
|
| + if (enter.failed())
|
| + return PP_AUDIOSAMPLERATE_NONE;
|
| + return enter.object()->GetSampleRate();
|
| +}
|
| +
|
| uint32_t GetSampleSize(PP_Resource frame) {
|
| VLOG(4) << "PPB_AudioFrame::GetSampleSize()";
|
| EnterResource<PPB_AudioFrame_API> enter(frame, true);
|
| @@ -84,6 +90,7 @@ const PPB_AudioFrame_0_1 g_ppb_audioframe_thunk_0_1 = {
|
| &IsAudioFrame,
|
| &GetTimestamp,
|
| &SetTimestamp,
|
| + &GetSampleRate,
|
| &GetSampleSize,
|
| &GetNumberOfChannels,
|
| &GetNumberOfSamples,
|
| @@ -93,7 +100,7 @@ const PPB_AudioFrame_0_1 g_ppb_audioframe_thunk_0_1 = {
|
|
|
| } // namespace
|
|
|
| -const PPB_AudioFrame_0_1* GetPPB_AudioFrame_0_1_Thunk() {
|
| +PPAPI_THUNK_EXPORT const PPB_AudioFrame_0_1* GetPPB_AudioFrame_0_1_Thunk() {
|
| return &g_ppb_audioframe_thunk_0_1;
|
| }
|
|
|
|
|