Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / remoting / codec / audio_encoder.h
blobc33a4d218c097a0ba4174535be7465e261c2b4da
1 // Copyright (c) 2012 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 REMOTING_CODEC_AUDIO_ENCODER_H_
6 #define REMOTING_CODEC_AUDIO_ENCODER_H_
8 #include "base/memory/scoped_ptr.h"
10 namespace remoting {
12 class AudioPacket;
14 class AudioEncoder {
15 public:
16 virtual ~AudioEncoder() {}
18 virtual scoped_ptr<AudioPacket> Encode(scoped_ptr<AudioPacket> packet) = 0;
20 // Returns average bitrate for the stream in bits per second.
21 virtual int GetBitrate() = 0;
24 } // namespace remoting
26 #endif // REMOTING_CODEC_AUDIO_ENCODER_H_