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

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

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « media/audio/audio_output_dispatcher.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) 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 #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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
12 #include "media/audio/audio_io.h" 12 #include "media/audio/audio_io.h"
13 #include "media/audio/audio_parameters.h" 13 #include "media/audio/audio_parameters.h"
14 14
15 namespace media {
16
15 class AudioOutputDispatcher; 17 class AudioOutputDispatcher;
16 18
17 // AudioOutputProxy is an audio otput stream that uses resources more 19 // AudioOutputProxy is an audio otput stream that uses resources more
18 // efficiently than a regular audio output stream: it opens audio 20 // efficiently than a regular audio output stream: it opens audio
19 // device only when sound is playing, i.e. between Start() and Stop() 21 // device only when sound is playing, i.e. between Start() and Stop()
20 // (there is still one physical stream per each audio output proxy in 22 // (there is still one physical stream per each audio output proxy in
21 // playing state). 23 // playing state).
22 // 24 //
23 // AudioOutputProxy uses AudioOutputDispatcher to open and close 25 // AudioOutputProxy uses AudioOutputDispatcher to open and close
24 // physical output streams. 26 // physical output streams.
(...skipping 30 matching lines...) Expand all
55 // than kPlaying. 57 // than kPlaying.
56 AudioOutputStream* physical_stream_; 58 AudioOutputStream* physical_stream_;
57 59
58 // Need to save volume here, so that we can restore it in case the stream 60 // Need to save volume here, so that we can restore it in case the stream
59 // is stopped, and then started again. 61 // is stopped, and then started again.
60 double volume_; 62 double volume_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(AudioOutputProxy); 64 DISALLOW_COPY_AND_ASSIGN(AudioOutputProxy);
63 }; 65 };
64 66
67 } // namespace media
68
65 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_ 69 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_dispatcher.cc ('k') | media/audio/audio_output_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698