diff options
author | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-14 16:01:01 +0000 |
---|---|---|
committer | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-14 16:01:01 +0000 |
commit | 2ae036503e150d97e08d18e3bd70a40ea812659f (patch) | |
tree | 59272788c896b71d544167c6852447299dbfea68 /ppapi/thunk/ppb_audio_frame_api.h | |
parent | 1e1cfab7e09b67b9972663362e294d26f12c7e73 (diff) | |
download | chromium_src-2ae036503e150d97e08d18e3bd70a40ea812659f.zip chromium_src-2ae036503e150d97e08d18e3bd70a40ea812659f.tar.gz chromium_src-2ae036503e150d97e08d18e3bd70a40ea812659f.tar.bz2 |
[PPAPI] Pepper MediaStream API audio thunk implementation
BUG=330851
Review URL: https://codereview.chromium.org/133703004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_audio_frame_api.h')
-rw-r--r-- | ppapi/thunk/ppb_audio_frame_api.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ppapi/thunk/ppb_audio_frame_api.h b/ppapi/thunk/ppb_audio_frame_api.h new file mode 100644 index 0000000..d900538 --- /dev/null +++ b/ppapi/thunk/ppb_audio_frame_api.h @@ -0,0 +1,29 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_THUNK_PPB_AUDIO_FRAME_API_H_ +#define PPAPI_THUNK_PPB_AUDIO_FRAME_API_H_ + +#include "ppapi/c/ppb_audio_frame.h" +#include "ppapi/thunk/ppapi_thunk_export.h" + +namespace ppapi { +namespace thunk { + +class PPAPI_THUNK_EXPORT PPB_AudioFrame_API { + public: + virtual ~PPB_AudioFrame_API() {} + virtual PP_TimeDelta GetTimestamp() = 0; + virtual void SetTimestamp(PP_TimeDelta timestamp) = 0; + virtual uint32_t GetSampleSize() = 0; + virtual uint32_t GetNumberOfChannels() = 0; + virtual uint32_t GetNumberOfSamples() = 0; + virtual void* GetDataBuffer() = 0; + virtual uint32_t GetDataBufferSize() = 0; +}; + +} // namespace thunk +} // namespace ppapi + +#endif // PPAPI_THUNK_PPB_AUDIO_FRAME_API_H_ |