| Index: remoting/host/audio_capturer.cc
|
| diff --git a/remoting/host/audio_capturer.cc b/remoting/host/audio_capturer.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8828475de5f1be97c1334da6b4bd8310757b023e
|
| --- /dev/null
|
| +++ b/remoting/host/audio_capturer.cc
|
| @@ -0,0 +1,21 @@
|
| +// 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/host/audio_capturer.h"
|
| +
|
| +#include "remoting/proto/audio.pb.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +bool AudioCapturer::IsValidSampleRate(int sample_rate) {
|
| + switch (sample_rate) {
|
| + case AudioPacket::SAMPLING_RATE_44100:
|
| + case AudioPacket::SAMPLING_RATE_48000:
|
| + return true;
|
| + default:
|
| + return false;
|
| + }
|
| +}
|
| +
|
| +} // namespace remoting
|
|
|