| Index: remoting/base/audio_encoder_verbatim.cc
|
| diff --git a/remoting/base/audio_encoder_verbatim.cc b/remoting/base/audio_encoder_verbatim.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eca6dbd099d108c881a2a9883c819d8f2165b66f
|
| --- /dev/null
|
| +++ b/remoting/base/audio_encoder_verbatim.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#include "remoting/base/audio_encoder_verbatim.h"
|
| +
|
| +#include "remoting/base/audio_capture_data.h"
|
| +#include "remoting/proto/audio.pb.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +AudioEncoderVerbatim::AudioEncoderVerbatim() {}
|
| +
|
| +AudioEncoderVerbatim::~AudioEncoderVerbatim() {}
|
| +
|
| +void AudioEncoderVerbatim::Encode(
|
| + scoped_ptr<AudioCaptureData> audio_capture_data,
|
| + const PacketEncodedCallback& packet_captured_callback) {
|
| + scoped_ptr<AudioPacket> packet = scoped_ptr<AudioPacket>(new AudioPacket());
|
| + packet->set_data(audio_capture_data->data());
|
| + packet->set_sampling_rate(audio_capture_data->sampling_rate());
|
| + packet_captured_callback.Run(packet.Pass());
|
| +}
|
| +
|
| +scoped_ptr<AudioEncoder> AudioEncoderVerbatim::CreateVerbatimAudioEncoder() {
|
| + return scoped_ptr<AudioEncoder>(new AudioEncoderVerbatim());
|
| +}
|
| +
|
| +} // namespace remoting
|
|
|