[go: nahoru, domu]

blob: dd4c5d4352e3c71c4933e9599cf5a93f5fe63a71 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_AUDIO_CAPTURER_H_
#define REMOTING_HOST_AUDIO_CAPTURER_H_
#include <memory>
#include "remoting/protocol/audio_source.h"
namespace remoting {
class AudioCapturer : public protocol::AudioSource {
public:
~AudioCapturer() override {}
// Returns true if audio capturing is supported on this platform. If this
// returns true, then Create() must not return nullptr.
static bool IsSupported();
static std::unique_ptr<AudioCapturer> Create();
static bool IsValidSampleRate(int sample_rate);
};
} // namespace remoting
#endif // REMOTING_HOST_AUDIO_CAPTURER_H_