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

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

Issue 1913973003: [chromecast] Simplify CastAudioOutputStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 7 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
« no previous file with comments | « no previous file | chromecast/media/audio/cast_audio_output_stream.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MANAGER_H_ 5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "media/audio/audio_manager_base.h" 9 #include "media/audio/audio_manager_base.h"
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 // AudioManager implementation. 29 // AudioManager implementation.
30 bool HasAudioOutputDevices() override; 30 bool HasAudioOutputDevices() override;
31 bool HasAudioInputDevices() override; 31 bool HasAudioInputDevices() override;
32 void ShowAudioInputSettings() override; 32 void ShowAudioInputSettings() override;
33 void GetAudioInputDeviceNames( 33 void GetAudioInputDeviceNames(
34 ::media::AudioDeviceNames* device_names) override; 34 ::media::AudioDeviceNames* device_names) override;
35 ::media::AudioParameters GetInputStreamParameters( 35 ::media::AudioParameters GetInputStreamParameters(
36 const std::string& device_id) override; 36 const std::string& device_id) override;
37 37
38 // This must be called on cast media thread. 38 // This must be called on audio thread.
39 // See chromecast::media::MediaMessageLoop.
40 virtual std::unique_ptr<MediaPipelineBackend> CreateMediaPipelineBackend( 39 virtual std::unique_ptr<MediaPipelineBackend> CreateMediaPipelineBackend(
41 const MediaPipelineDeviceParams& params); 40 const MediaPipelineDeviceParams& params);
42 41
43 protected: 42 protected:
44 ~CastAudioManager() override; 43 ~CastAudioManager() override;
45 44
46 private: 45 private:
47 // AudioManagerBase implementation. 46 // AudioManagerBase implementation.
48 ::media::AudioOutputStream* MakeLinearOutputStream( 47 ::media::AudioOutputStream* MakeLinearOutputStream(
49 const ::media::AudioParameters& params) override; 48 const ::media::AudioParameters& params) override;
(...skipping 12 matching lines...) Expand all
62 61
63 MediaPipelineBackendManager* const backend_manager_; 62 MediaPipelineBackendManager* const backend_manager_;
64 63
65 DISALLOW_COPY_AND_ASSIGN(CastAudioManager); 64 DISALLOW_COPY_AND_ASSIGN(CastAudioManager);
66 }; 65 };
67 66
68 } // namespace media 67 } // namespace media
69 } // namespace chromecast 68 } // namespace chromecast
70 69
71 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_ 70 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/audio/cast_audio_output_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698