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

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

Issue 10913267: Bypass audio resampler on XP / non-WASAPI wave out path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 3 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
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WIN_AUDIO_MANAGER_WIN_H_ 5 #ifndef MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 6 #define MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 // Implementation of AudioManagerBase. 33 // Implementation of AudioManagerBase.
34 virtual AudioOutputStream* MakeLinearOutputStream( 34 virtual AudioOutputStream* MakeLinearOutputStream(
35 const AudioParameters& params) OVERRIDE; 35 const AudioParameters& params) OVERRIDE;
36 virtual AudioOutputStream* MakeLowLatencyOutputStream( 36 virtual AudioOutputStream* MakeLowLatencyOutputStream(
37 const AudioParameters& params) OVERRIDE; 37 const AudioParameters& params) OVERRIDE;
38 virtual AudioInputStream* MakeLinearInputStream( 38 virtual AudioInputStream* MakeLinearInputStream(
39 const AudioParameters& params, const std::string& device_id) OVERRIDE; 39 const AudioParameters& params, const std::string& device_id) OVERRIDE;
40 virtual AudioInputStream* MakeLowLatencyInputStream( 40 virtual AudioInputStream* MakeLowLatencyInputStream(
41 const AudioParameters& params, const std::string& device_id) OVERRIDE; 41 const AudioParameters& params, const std::string& device_id) OVERRIDE;
42 42
43 virtual AudioParameters GetPreferredLowLatencyOutputStreamParameters(
44 const AudioParameters& input_params) OVERRIDE;
45
43 protected: 46 protected:
44 virtual ~AudioManagerWin(); 47 virtual ~AudioManagerWin();
45 48
46 private: 49 private:
47 enum EnumerationType { 50 enum EnumerationType {
48 kUninitializedEnumeration = 0, 51 kUninitializedEnumeration = 0,
49 kMMDeviceEnumeration, 52 kMMDeviceEnumeration,
50 kWaveEnumeration, 53 kWaveEnumeration,
51 }; 54 };
52 55
(...skipping 14 matching lines...) Expand all
67 AudioInputStream* CreatePCMWaveInAudioInputStream( 70 AudioInputStream* CreatePCMWaveInAudioInputStream(
68 const AudioParameters& params, 71 const AudioParameters& params,
69 const std::string& device_id); 72 const std::string& device_id);
70 73
71 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin); 74 DISALLOW_COPY_AND_ASSIGN(AudioManagerWin);
72 }; 75 };
73 76
74 } // namespace media 77 } // namespace media
75 78
76 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_ 79 #endif // MEDIA_AUDIO_WIN_AUDIO_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/win/audio_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698