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

Side by Side Diff: content/renderer/media/audio_message_filter.h

Issue 10830268: Allow audio system to handle synchronized low-latency audio I/O (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « content/common/media/audio_messages.h ('k') | content/renderer/media/audio_message_filter.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 // MessageFilter that handles audio messages and delegates them to audio 5 // MessageFilter that handles audio messages and delegates them to audio
6 // renderers. Created on render thread, AudioMessageFilter is operated on 6 // renderers. Created on render thread, AudioMessageFilter is operated on
7 // IO thread (secondary thread of render process) it intercepts audio messages 7 // IO thread (secondary thread of render process) it intercepts audio messages
8 // and process them on IO thread since these messages are time critical. 8 // and process them on IO thread since these messages are time critical.
9 9
10 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ 10 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 AudioMessageFilter(); 26 AudioMessageFilter();
27 27
28 // Getter for the one AudioMessageFilter object. 28 // Getter for the one AudioMessageFilter object.
29 static AudioMessageFilter* Get(); 29 static AudioMessageFilter* Get();
30 30
31 // media::AudioOutputIPCDelegate implementation. 31 // media::AudioOutputIPCDelegate implementation.
32 virtual int AddDelegate(media::AudioOutputIPCDelegate* delegate) OVERRIDE; 32 virtual int AddDelegate(media::AudioOutputIPCDelegate* delegate) OVERRIDE;
33 virtual void RemoveDelegate(int id) OVERRIDE; 33 virtual void RemoveDelegate(int id) OVERRIDE;
34 virtual void CreateStream(int stream_id, 34 virtual void CreateStream(int stream_id,
35 const media::AudioParameters& params) OVERRIDE; 35 const media::AudioParameters& params, int input_channels) OVERRIDE;
36 virtual void PlayStream(int stream_id) OVERRIDE; 36 virtual void PlayStream(int stream_id) OVERRIDE;
37 virtual void PauseStream(int stream_id) OVERRIDE; 37 virtual void PauseStream(int stream_id) OVERRIDE;
38 virtual void FlushStream(int stream_id) OVERRIDE; 38 virtual void FlushStream(int stream_id) OVERRIDE;
39 virtual void CloseStream(int stream_id) OVERRIDE; 39 virtual void CloseStream(int stream_id) OVERRIDE;
40 virtual void SetVolume(int stream_id, double volume) OVERRIDE; 40 virtual void SetVolume(int stream_id, double volume) OVERRIDE;
41 41
42 // IPC::ChannelProxy::MessageFilter override. Called on IO thread. 42 // IPC::ChannelProxy::MessageFilter override. Called on IO thread.
43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 43 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
44 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE; 44 virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
45 virtual void OnFilterRemoved() OVERRIDE; 45 virtual void OnFilterRemoved() OVERRIDE;
(...skipping 28 matching lines...) Expand all
74 74
75 // A map of stream ids to delegates. 75 // A map of stream ids to delegates.
76 IDMap<media::AudioOutputIPCDelegate> delegates_; 76 IDMap<media::AudioOutputIPCDelegate> delegates_;
77 77
78 IPC::Channel* channel_; 78 IPC::Channel* channel_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter); 80 DISALLOW_COPY_AND_ASSIGN(AudioMessageFilter);
81 }; 81 };
82 82
83 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_ 83 #endif // CONTENT_RENDERER_MEDIA_AUDIO_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « content/common/media/audio_messages.h ('k') | content/renderer/media/audio_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698