Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: remoting/host/audio_capturer.h

Issue 10818010: Added support for multiple sampling rates on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/audio_capturer.cc » ('j') | remoting/host/audio_capturer_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | remoting/host/audio_capturer.cc » ('j') | remoting/host/audio_capturer_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698