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

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

Issue 1308153005: [Chromecast] Plumbs raw audio through CMA backend. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed cast_shell compile error Created 5 years, 3 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 | « chromecast/media/audio/BUILD.gn ('k') | chromecast/media/audio/cast_audio_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
6 #define CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
7
8 #include "base/macros.h"
9 #include "media/audio/audio_manager_base.h"
10
11 namespace chromecast {
12
13 class TaskRunnerImpl;
14
15 namespace media {
16
17 class MediaPipelineBackend;
18
19 class CastAudioManager : public ::media::AudioManagerBase {
20 public:
21 explicit CastAudioManager(::media::AudioLogFactory* audio_log_factory);
22 ~CastAudioManager() override;
23
24 // AudioManager implementation.
25 bool HasAudioOutputDevices() override;
26 bool HasAudioInputDevices() override;
27 void ShowAudioInputSettings() override;
28 void GetAudioInputDeviceNames(
29 ::media::AudioDeviceNames* device_names) override;
30 ::media::AudioParameters GetInputStreamParameters(
31 const std::string& device_id) override;
32
33 // This must be called on audio thread.
34 // See AudioManager::GetTaskRunner.
35 virtual scoped_ptr<MediaPipelineBackend> CreateMediaPipelineBackend();
36
37 private:
38 // AudioManagerBase implementation.
39 ::media::AudioOutputStream* MakeLinearOutputStream(
40 const ::media::AudioParameters& params) override;
41 ::media::AudioOutputStream* MakeLowLatencyOutputStream(
42 const ::media::AudioParameters& params,
43 const std::string& device_id) override;
44 ::media::AudioInputStream* MakeLinearInputStream(
45 const ::media::AudioParameters& params,
46 const std::string& device_id) override;
47 ::media::AudioInputStream* MakeLowLatencyInputStream(
48 const ::media::AudioParameters& params,
49 const std::string& device_id) override;
50 ::media::AudioParameters GetPreferredOutputStreamParameters(
51 const std::string& output_device_id,
52 const ::media::AudioParameters& input_params) override;
53
54 scoped_ptr<TaskRunnerImpl> audio_task_runner_;
55
56 DISALLOW_COPY_AND_ASSIGN(CastAudioManager);
57 };
58
59 } // namespace media
60 } // namespace chromecast
61
62 #endif // CHROMECAST_MEDIA_AUDIO_CAST_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « chromecast/media/audio/BUILD.gn ('k') | chromecast/media/audio/cast_audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698