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

Side by Side Diff: media/audio/audio_manager.h

Issue 5158003: Implement AudioOutputProxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month 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 | « no previous file | media/audio/audio_manager_base.h » ('j') | media/audio/audio_manager_base.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_AUDIO_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/audio/audio_parameters.h" 9 #include "media/audio/audio_parameters.h"
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual AudioInputStream* MakeAudioInputStream(AudioParameters params) = 0; 64 virtual AudioInputStream* MakeAudioInputStream(AudioParameters params) = 0;
65 65
66 // Muting continues playback but effectively the volume is set to zero. 66 // Muting continues playback but effectively the volume is set to zero.
67 // Un-muting returns the volume to the previous level. 67 // Un-muting returns the volume to the previous level.
68 virtual void MuteAll() = 0; 68 virtual void MuteAll() = 0;
69 virtual void UnMuteAll() = 0; 69 virtual void UnMuteAll() = 0;
70 70
71 // Returns message loop used for audio IO. 71 // Returns message loop used for audio IO.
72 virtual MessageLoop* GetMessageLoop() = 0; 72 virtual MessageLoop* GetMessageLoop() = 0;
73 73
74 virtual AudioOutputStream* MakeAudioOutputStreamProxy(
scherkus (not reviewing) 2010/11/22 06:43:15 comment? for example how does this differ from Ma
Sergey Ulanov 2010/11/23 19:51:46 Done.
75 AudioParameters params) = 0;
76
74 // Get AudioManager singleton. 77 // Get AudioManager singleton.
75 // TODO(cpu): Define threading requirements for interacting with AudioManager. 78 // TODO(cpu): Define threading requirements for interacting with AudioManager.
76 static AudioManager* GetAudioManager(); 79 static AudioManager* GetAudioManager();
77 80
78 protected: 81 protected:
79 virtual ~AudioManager() {} 82 virtual ~AudioManager() {}
80 83
81 // Called from GetAudioManager() to initialiaze the instance. 84 // Called from GetAudioManager() to initialiaze the instance.
82 virtual void Init() = 0; 85 virtual void Init() = 0;
83 86
84 private: 87 private:
85 static void Destroy(void*); 88 static void Destroy(void*);
86 89
87 // Called by GetAudioManager() to create platform-specific audio manager. 90 // Called by GetAudioManager() to create platform-specific audio manager.
88 static AudioManager* CreateAudioManager(); 91 static AudioManager* CreateAudioManager();
89 }; 92 };
90 93
91 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_ 94 #endif // MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_manager_base.h » ('j') | media/audio/audio_manager_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698