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

Side by Side Diff: media/audio/win/audio_manager_win.h

Issue 8283032: Low-latency AudioInputStream implementation based on WASAPI for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "media/audio/audio_manager_base.h" 11 #include "media/audio/audio_manager_base.h"
12 12
13 class PCMWaveInAudioInputStream; 13 class PCMWaveInAudioInputStream;
14 class PCMWaveOutAudioOutputStream; 14 class PCMWaveOutAudioOutputStream;
15 15
16 // Windows implementation of the AudioManager singleton. This class is internal 16 // Windows implementation of the AudioManager singleton. This class is internal
(...skipping 14 matching lines...) Expand all
31 virtual string16 GetAudioInputDeviceModel(); 31 virtual string16 GetAudioInputDeviceModel();
32 virtual bool CanShowAudioInputSettings(); 32 virtual bool CanShowAudioInputSettings();
33 virtual void ShowAudioInputSettings(); 33 virtual void ShowAudioInputSettings();
34 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names); 34 virtual void GetAudioInputDeviceNames(media::AudioDeviceNames* device_names);
35 35
36 // Windows-only methods to free a stream created in MakeAudioStream. These 36 // Windows-only methods to free a stream created in MakeAudioStream. These
37 // are called internally by the audio stream when it has been closed. 37 // are called internally by the audio stream when it has been closed.
38 void ReleaseOutputStream(PCMWaveOutAudioOutputStream* stream); 38 void ReleaseOutputStream(PCMWaveOutAudioOutputStream* stream);
39 39
40 // Called internally by the audio stream when it has been closed. 40 // Called internally by the audio stream when it has been closed.
41 void ReleaseInputStream(PCMWaveInAudioInputStream* stream); 41 void ReleaseInputStream(AudioInputStream* stream);
42 42
43 private: 43 private:
44 virtual ~AudioManagerWin(); 44 virtual ~AudioManagerWin();
45 45
46 // Number of currently open output streams. 46 // Number of currently open output streams.
47 int num_output_streams_; 47 int num_output_streams_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); 49 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin);
50 }; 50 };
51 51
52 #endif // MEDIA_AUDIO_AUDIO_MANAGER_WIN_H_ 52 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698