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

Side by Side Diff: chromecast/media/audio/cast_audio_mixer.h

Issue 2545733002: chromecast: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « chromecast/media/audio/cast_audio_manager.h ('k') | chromecast/media/cdm/cast_cdm.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MIXER_H_ 5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MIXER_H_
6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MIXER_H_ 6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MIXER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "media/audio/audio_io.h" 15 #include "media/audio/audio_io.h"
16 #include "media/base/audio_converter.h" 16 #include "media/base/audio_converter.h"
17 #include "media/base/audio_parameters.h" 17 #include "media/base/audio_parameters.h"
18 18
19 namespace chromecast { 19 namespace chromecast {
20 namespace media { 20 namespace media {
21 21
22 class CastAudioManager; 22 class CastAudioManager;
23 class CastAudioOutputStream;
24 23
25 // CastAudioMixer mixes multiple AudioOutputStreams and passes the mixed 24 // CastAudioMixer mixes multiple AudioOutputStreams and passes the mixed
26 // stream down to a single AudioOutputStream to be rendered by the CMA backend. 25 // stream down to a single AudioOutputStream to be rendered by the CMA backend.
27 class CastAudioMixer : public ::media::AudioOutputStream::AudioSourceCallback { 26 class CastAudioMixer : public ::media::AudioOutputStream::AudioSourceCallback {
28 public: 27 public:
29 using RealStreamFactory = base::Callback<::media::AudioOutputStream*( 28 using RealStreamFactory = base::Callback<::media::AudioOutputStream*(
30 const ::media::AudioParameters&)>; 29 const ::media::AudioParameters&)>;
31 30
32 explicit CastAudioMixer(const RealStreamFactory& real_stream_factory); 31 explicit CastAudioMixer(const RealStreamFactory& real_stream_factory);
33 ~CastAudioMixer() override; 32 ~CastAudioMixer() override;
(...skipping 29 matching lines...) Expand all
63 62
64 std::vector<MixerProxyStream*> proxy_streams_; 63 std::vector<MixerProxyStream*> proxy_streams_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(CastAudioMixer); 65 DISALLOW_COPY_AND_ASSIGN(CastAudioMixer);
67 }; 66 };
68 67
69 } // namespace media 68 } // namespace media
70 } // namespace chromecast 69 } // namespace chromecast
71 70
72 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MIXER_H_ 71 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MIXER_H_
OLDNEW
« no previous file with comments | « chromecast/media/audio/cast_audio_manager.h ('k') | chromecast/media/cdm/cast_cdm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698