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

Side by Side Diff: ppapi/proxy/audio_encoder_resource.cc

Issue 1128023009: ppapi: define PPB_AudioEncoder API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bbudge's nits & api release bump Created 5 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "ppapi/proxy/audio_encoder_resource.h"
6
7 namespace ppapi {
8 namespace proxy {
9
10 AudioEncoderResource::AudioEncoderResource(Connection connection,
11 PP_Instance instance)
12 : PluginResource(connection, instance) {
13 }
14
15 AudioEncoderResource::~AudioEncoderResource() {
16 }
17
18 thunk::PPB_AudioEncoder_API* AudioEncoderResource::AsPPB_AudioEncoder_API() {
19 return this;
20 }
21
22 int32_t AudioEncoderResource::GetSupportedProfiles(
23 const PP_ArrayOutput& output,
24 const scoped_refptr<TrackedCallback>& callback) {
25 return PP_ERROR_NOTSUPPORTED;
26 }
27
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;
37 }
38
39 int32_t AudioEncoderResource::GetNumberOfSamples() {
40 return PP_ERROR_NOTSUPPORTED;
41 }
42
43 int32_t AudioEncoderResource::GetBuffer(
44 PP_Resource* audio_buffer,
45 const scoped_refptr<TrackedCallback>& callback) {
46 return PP_ERROR_NOTSUPPORTED;
47 }
48
49 int32_t AudioEncoderResource::Encode(
50 PP_Resource audio_buffer,
51 const scoped_refptr<TrackedCallback>& callback) {
52 return PP_ERROR_NOTSUPPORTED;
53 }
54
55 int32_t AudioEncoderResource::GetBitstreamBuffer(
56 PP_AudioBitstreamBuffer* bitstream_buffer,
57 const scoped_refptr<TrackedCallback>& callback) {
58 return PP_ERROR_NOTSUPPORTED;
59 }
60
61 void AudioEncoderResource::RecycleBitstreamBuffer(
62 const PP_AudioBitstreamBuffer* bitstream_buffer) {
63 }
64
65 void AudioEncoderResource::RequestBitrateChange(uint32_t bitrate) {
66 }
67
68 void AudioEncoderResource::Close() {
69 }
70
71 } // namespace proxy
72 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698