| Index: remoting/host/audio_capturer.h
|
| diff --git a/remoting/host/audio_capturer.h b/remoting/host/audio_capturer.h
|
| index 87fa8ab7875f744ce98dcc2ca3d5dece9d3c6245..1c456c14ce8a666b3c1696205430153506b4d1bd 100644
|
| --- a/remoting/host/audio_capturer.h
|
| +++ b/remoting/host/audio_capturer.h
|
| @@ -7,10 +7,11 @@
|
|
|
| #include "base/callback.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "remoting/proto/audio.pb.h"
|
|
|
| namespace remoting {
|
|
|
| +class AudioPacket;
|
| +
|
| class AudioCapturer {
|
| public:
|
| typedef base::Callback<void(scoped_ptr<AudioPacket> packet)>
|
| @@ -20,8 +21,8 @@ class AudioCapturer {
|
|
|
| static scoped_ptr<AudioCapturer> Create();
|
|
|
| - // Capturers should sample at a 44.1 kHz sampling rate, in uncompressed PCM
|
| - // stereo format. Capturers may choose the number of frames per packet.
|
| + // Capturers should sample at a 44.1 or 48 kHz sampling rate, in uncompressed
|
| + // PCM stereo format. Capturers may choose the number of frames per packet.
|
| // Returns true on success.
|
| virtual bool Start(const PacketCapturedCallback& callback) = 0;
|
| // Stops the audio capturer, and frees the OS-specific audio capture
|
| @@ -29,6 +30,8 @@ class AudioCapturer {
|
| virtual void Stop() = 0;
|
| // Returns true if the audio capturer is running.
|
| virtual bool IsRunning() = 0;
|
| +
|
| + static bool IsValidSampleRate(int sample_rate);
|
| };
|
|
|
| } // namespace remoting
|
|
|