| // 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. |
| |
| #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_ |