summaryrefslogtreecommitdiffstats
path: root/remoting/host/audio_capturer.cc
blob: 4f896cc62d1490dc95c575e25776e21436d503e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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 {

// Returns true if the sampling rate is supported by Pepper.
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