OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // AudioInputRendererHost serves audio related requests from audio capturer | 5 // AudioInputRendererHost serves audio related requests from audio capturer |
6 // which lives inside the render process and provide access to audio hardware. | 6 // which lives inside the render process and provide access to audio hardware. |
7 // | 7 // |
8 // OnCreateStream() request is only available in the low latency mode. It will | 8 // OnCreateStream() request is only available in the low latency mode. It will |
9 // creates a shared memory, a SyncWriter and a AudioInputController for the | 9 // creates a shared memory, a SyncWriter and a AudioInputController for the |
10 // input stream. | 10 // input stream. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 #include "media/audio/audio_io.h" | 69 #include "media/audio/audio_io.h" |
70 #include "media/audio/simple_sources.h" | 70 #include "media/audio/simple_sources.h" |
71 | 71 |
72 namespace content { | 72 namespace content { |
73 class ResourceContext; | 73 class ResourceContext; |
74 } | 74 } |
75 | 75 |
76 class AudioManager; | 76 class AudioManager; |
77 struct AudioParameters; | 77 struct AudioParameters; |
78 | 78 |
79 class AudioInputRendererHost | 79 class CONTENT_EXPORT AudioInputRendererHost |
80 : public BrowserMessageFilter, | 80 : public BrowserMessageFilter, |
81 public media::AudioInputController::EventHandler, | 81 public media::AudioInputController::EventHandler, |
82 public media_stream::AudioInputDeviceManagerEventHandler { | 82 public media_stream::AudioInputDeviceManagerEventHandler { |
83 public: | 83 public: |
84 struct AudioEntry { | 84 struct AudioEntry { |
85 AudioEntry(); | 85 AudioEntry(); |
86 ~AudioEntry(); | 86 ~AudioEntry(); |
87 | 87 |
88 // The AudioInputController that manages the audio input stream. | 88 // The AudioInputController that manages the audio input stream. |
89 scoped_refptr<media::AudioInputController> controller; | 89 scoped_refptr<media::AudioInputController> controller; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 AudioEntryMap audio_entries_; | 212 AudioEntryMap audio_entries_; |
213 | 213 |
214 // A map of session IDs to audio session sources. | 214 // A map of session IDs to audio session sources. |
215 typedef std::map<int, int> SessionEntryMap; | 215 typedef std::map<int, int> SessionEntryMap; |
216 SessionEntryMap session_entries_; | 216 SessionEntryMap session_entries_; |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); | 218 DISALLOW_COPY_AND_ASSIGN(AudioInputRendererHost); |
219 }; | 219 }; |
220 | 220 |
221 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ | 221 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_INPUT_RENDERER_HOST_H_ |
OLD | NEW |