1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_THUNK_PPB_MEDIA_STREAM_AUDIO_TRACK_API_H_
6 #define PPAPI_THUNK_PPB_MEDIA_STREAM_AUDIO_TRACK_API_H_
8 #include "ppapi/c/ppb_media_stream_audio_track.h"
13 class PPAPI_THUNK_EXPORT PPB_MediaStreamAudioTrack_API {
15 virtual ~PPB_MediaStreamAudioTrack_API() {}
16 virtual PP_Var GetId() = 0;
17 virtual PP_Bool HasEnded() = 0;
18 virtual int32_t Configure(const int32_t attrib_list[],
19 scoped_refptr<ppapi::TrackedCallback> callback) = 0;
20 virtual int32_t GetAttrib(PP_MediaStreamAudioTrack_Attrib attrib,
22 virtual int32_t GetFrame(PP_Resource* frame,
23 scoped_refptr<ppapi::TrackedCallback> callback) = 0;
24 virtual int32_t RecycleFrame(PP_Resource frame) = 0;
25 virtual void Close() = 0;
31 #endif // PPAPI_THUNK_PPB_MEDIA_STREAM_AUDIO_TRACK_API_H_