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

Side by Side Diff: chromecast/media/audio/cast_audio_manager_factory.cc

Issue 1105803002: Exposes a shlib interface for media/audio path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Name refactoring. Created 5 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
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 #include "chromecast/media/audio/cast_audio_manager_factory.h"
6
7 #include "base/logging.h"
8 #include "chromecast/media/audio/cast_audio_manager.h"
9
10 namespace chromecast {
11
12 CastAudioManagerFactory::CastAudioManagerFactory(
13 chromecast::CastAudioOutputDevice* audio_stream_output_device)
14 : audio_stream_output_device_(audio_stream_output_device) {
15 CHECK(audio_stream_output_device_);
16 }
17
18 CastAudioManagerFactory::~CastAudioManagerFactory() {
19 }
20
21 media::AudioManager* CastAudioManagerFactory::CreateInstance(
22 media::AudioLogFactory* audio_log_factory) {
23 // Create an AudioManager and pass ownership to the caller.
24 return new CastAudioManager(audio_log_factory, audio_stream_output_device_);
25 }
26
27 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698