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

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

Issue 9691001: Audio software mixer. (Closed) Base URL: http://src.chromium.org/svn/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_mixer.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"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 kPlaying, 46 kPlaying,
47 kClosed, 47 kClosed,
48 kError, 48 kError,
49 }; 49 };
50 50
51 virtual ~AudioOutputProxy(); 51 virtual ~AudioOutputProxy();
52 52
53 scoped_refptr<AudioOutputDispatcher> dispatcher_; 53 scoped_refptr<AudioOutputDispatcher> dispatcher_;
54 State state_; 54 State state_;
55 55
56 // The actual audio stream. Must be set to NULL in any state other
57 // than kPlaying.
58 AudioOutputStream* physical_stream_;
59
60 // Need to save volume here, so that we can restore it in case the stream 56 // Need to save volume here, so that we can restore it in case the stream
61 // is stopped, and then started again. 57 // is stopped, and then started again.
62 double volume_; 58 double volume_;
63 59
64 DISALLOW_COPY_AND_ASSIGN(AudioOutputProxy); 60 DISALLOW_COPY_AND_ASSIGN(AudioOutputProxy);
65 }; 61 };
66 62
67 } // namespace media 63 } // namespace media
68 64
69 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_ 65 #endif // MEDIA_AUDIO_AUDIO_OUTPUT_PROXY_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_mixer.cc ('k') | media/audio/audio_output_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698