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

Unified Diff: media/audio/win/audio_manager_win.h

Issue 2966005: Add recording capability to AudioManager, and implemented on windows using the WaveIn APIs. (Closed)
Patch Set: Patch Created 10 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 | « media/audio/win/audio_input_win_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/audio_manager_win.h
diff --git a/media/audio/win/audio_manager_win.h b/media/audio/win/audio_manager_win.h
index df6ab1028fb2413f198f559e7093f96148fcd976..21a40141606324f1a0664a08e1b41d6f7f5ec46a 100644
--- a/media/audio/win/audio_manager_win.h
+++ b/media/audio/win/audio_manager_win.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2006-2010 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.
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "media/audio/audio_io.h"
+class PCMWaveInAudioInputStream;
class PCMWaveOutAudioOutputStream;
// Windows implementation of the AudioManager singleton. This class is internal
@@ -20,9 +21,14 @@ class AudioManagerWin : public AudioManager {
AudioManagerWin() {}
// Implementation of AudioManager.
virtual bool HasAudioOutputDevices();
+ virtual bool HasAudioInputDevices();
virtual AudioOutputStream* MakeAudioOutputStream(Format format, int channels,
int sample_rate,
char bits_per_sample);
+ virtual AudioInputStream* MakeAudioInputStream(Format format, int channels,
+ int sample_rate,
+ char bits_per_sample,
+ uint32 samples_per_packet);
virtual void MuteAll();
virtual void UnMuteAll();
@@ -30,6 +36,9 @@ class AudioManagerWin : public AudioManager {
// are called internally by the audio stream when it has been closed.
void ReleaseOutputStream(PCMWaveOutAudioOutputStream* stream);
+ // Called internally by the audio stream when it has been closed.
+ void ReleaseInputStream(PCMWaveInAudioInputStream* stream);
+
private:
friend void DestroyAudioManagerWin(void *);
virtual ~AudioManagerWin();
« no previous file with comments | « media/audio/win/audio_input_win_unittest.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698