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

Side by Side Diff: content/browser/renderer_host/media/audio_renderer_host.h

Issue 14234023: Remove unused flush operation from Chromium audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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) 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 // AudioRendererHost serves audio related requests from AudioRenderer which 5 // AudioRendererHost serves audio related requests from AudioRenderer which
6 // lives inside the render process and provide access to audio hardware. 6 // lives inside the render process and provide access to audio hardware.
7 // 7 //
8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI 8 // This class is owned by BrowserRenderProcessHost, and instantiated on UI
9 // thread, but all other operations and method calls happen on IO thread, so we 9 // thread, but all other operations and method calls happen on IO thread, so we
10 // need to be extra careful about the lifetime of this object. AudioManager is a 10 // need to be extra careful about the lifetime of this object. AudioManager is a
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Track that the data for the audio stream referenced by |stream_id| is 102 // Track that the data for the audio stream referenced by |stream_id| is
103 // produced by an entity in the render view referenced by |render_view_id|. 103 // produced by an entity in the render view referenced by |render_view_id|.
104 void OnAssociateStreamWithProducer(int stream_id, int render_view_id); 104 void OnAssociateStreamWithProducer(int stream_id, int render_view_id);
105 105
106 // Play the audio stream referenced by |stream_id|. 106 // Play the audio stream referenced by |stream_id|.
107 void OnPlayStream(int stream_id); 107 void OnPlayStream(int stream_id);
108 108
109 // Pause the audio stream referenced by |stream_id|. 109 // Pause the audio stream referenced by |stream_id|.
110 void OnPauseStream(int stream_id); 110 void OnPauseStream(int stream_id);
111 111
112 // Discard all audio data in stream referenced by |stream_id|.
113 void OnFlushStream(int stream_id);
114
115 // Close the audio stream referenced by |stream_id|. 112 // Close the audio stream referenced by |stream_id|.
116 void OnCloseStream(int stream_id); 113 void OnCloseStream(int stream_id);
117 114
118 // Set the volume of the audio stream referenced by |stream_id|. 115 // Set the volume of the audio stream referenced by |stream_id|.
119 void OnSetVolume(int stream_id, double volume); 116 void OnSetVolume(int stream_id, double volume);
120 117
121 // Complete the process of creating an audio stream. This will set up the 118 // Complete the process of creating an audio stream. This will set up the
122 // shared memory or shared socket in low latency mode. 119 // shared memory or shared socket in low latency mode.
123 void DoCompleteCreation(AudioEntry* entry); 120 void DoCompleteCreation(AudioEntry* entry);
124 121
(...skipping 23 matching lines...) Expand all
148 145
149 // A map of stream IDs to audio sources. 146 // A map of stream IDs to audio sources.
150 AudioEntryMap audio_entries_; 147 AudioEntryMap audio_entries_;
151 148
152 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost); 149 DISALLOW_COPY_AND_ASSIGN(AudioRendererHost);
153 }; 150 };
154 151
155 } // namespace content 152 } // namespace content
156 153
157 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_ 154 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698