Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ppapi / proxy / audio_encoder_resource.cc
blobd1576fb616b6dadd2d7ed8d72fb00fb525be23ed
1 // Copyright 2015 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 #include "ppapi/proxy/audio_encoder_resource.h"
7 namespace ppapi {
8 namespace proxy {
10 AudioEncoderResource::AudioEncoderResource(Connection connection,
11 PP_Instance instance)
12 : PluginResource(connection, instance) {
15 AudioEncoderResource::~AudioEncoderResource() {
18 thunk::PPB_AudioEncoder_API* AudioEncoderResource::AsPPB_AudioEncoder_API() {
19 return this;
22 int32_t AudioEncoderResource::GetSupportedProfiles(
23 const PP_ArrayOutput& output,
24 const scoped_refptr<TrackedCallback>& callback) {
25 return PP_ERROR_NOTSUPPORTED;
28 int32_t AudioEncoderResource::Initialize(
29 uint32_t channels,
30 PP_AudioBuffer_SampleRate input_sample_rate,
31 PP_AudioBuffer_SampleSize input_sample_size,
32 PP_AudioProfile output_profile,
33 uint32_t initial_bitrate,
34 PP_HardwareAcceleration acceleration,
35 const scoped_refptr<TrackedCallback>& callback) {
36 return PP_ERROR_NOTSUPPORTED;
39 int32_t AudioEncoderResource::GetNumberOfSamples() {
40 return PP_ERROR_NOTSUPPORTED;
43 int32_t AudioEncoderResource::GetBuffer(
44 PP_Resource* audio_buffer,
45 const scoped_refptr<TrackedCallback>& callback) {
46 return PP_ERROR_NOTSUPPORTED;
49 int32_t AudioEncoderResource::Encode(
50 PP_Resource audio_buffer,
51 const scoped_refptr<TrackedCallback>& callback) {
52 return PP_ERROR_NOTSUPPORTED;
55 int32_t AudioEncoderResource::GetBitstreamBuffer(
56 PP_AudioBitstreamBuffer* bitstream_buffer,
57 const scoped_refptr<TrackedCallback>& callback) {
58 return PP_ERROR_NOTSUPPORTED;
61 void AudioEncoderResource::RecycleBitstreamBuffer(
62 const PP_AudioBitstreamBuffer* bitstream_buffer) {
65 void AudioEncoderResource::RequestBitrateChange(uint32_t bitrate) {
68 void AudioEncoderResource::Close() {
71 } // namespace proxy
72 } // namespace ppapi