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

Side by Side Diff: chromecast/media/audio/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: 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
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_AUDIO_MANAGER_H_
6 #define CHROMECAST_MEDIA_AUDIO_AUDIO_MANAGER_H_
7
8 #include "media/audio/audio_manager_base.h"
9
10 namespace chromecast {
slan 2015/08/31 16:59:56 nit: This can simply be declared inside the namesp
alokp 2015/09/01 00:23:11 Done.
11 class TaskRunnerImpl;
12 } // namespace chromecast
13
14 namespace chromecast {
15 namespace media {
16
17 class MediaPipelineBackend;
18
19 class AudioManager : public ::media::AudioManagerBase {
20 public:
21 AudioManager(::media::AudioLogFactory* audio_log_factory);
22 ~AudioManager() 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 // In production, this must be called on audio thread.
34 // See AudioManager::GetTaskRunner.
35 virtual scoped_ptr<MediaPipelineBackend> CreateMediaPipelineBackend();
halliwell 2015/08/28 15:14:18 I'm not clear what this is for. Can't we always j
alokp 2015/09/01 00:23:11 Will explain offline.
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(AudioManager);
57 };
58
59 } // namespace media
60 } // namespace chromecast
61
62 #endif // CHROMECAST_MEDIA_AUDIO_AUDIO_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698