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

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

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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_controller_unittest.cc ('k') | media/audio/audio_output_proxy.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) 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 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_
6 #define MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_ 6 #define MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/task.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
10 #include "media/audio/audio_io.h" 11 #include "media/audio/audio_io.h"
11 #include "media/audio/audio_parameters.h" 12 #include "media/audio/audio_parameters.h"
12 13
13 class AudioOutputDispatcher; 14 class AudioOutputDispatcher;
14 15
15 // AudioOutputProxy is an audio otput stream that uses resources more 16 // AudioOutputProxy is an audio otput stream that uses resources more
16 // efficiently than a regular audio output stream: it opens audio 17 // efficiently than a regular audio output stream: it opens audio
17 // device only when sound is playing, i.e. between Start() and Stop() 18 // device only when sound is playing, i.e. between Start() and Stop()
18 // (there is still one physical stream per each audio output proxy in 19 // (there is still one physical stream per each audio output proxy in
19 // playing state). 20 // playing state).
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 AudioOutputStream* physical_stream_; 53 AudioOutputStream* physical_stream_;
53 54
54 // Need to save volume here, so that we can restore it in case the stream 55 // Need to save volume here, so that we can restore it in case the stream
55 // is stopped, and then started again. 56 // is stopped, and then started again.
56 double volume_; 57 double volume_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(AudioOutputProxy); 59 DISALLOW_COPY_AND_ASSIGN(AudioOutputProxy);
59 }; 60 };
60 61
61 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_ 62 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_controller_unittest.cc ('k') | media/audio/audio_output_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698