| Index: chromecast/media/audio/cast_audio_manager_factory.cc
|
| diff --git a/chromecast/media/audio/cast_audio_manager_factory.cc b/chromecast/media/audio/cast_audio_manager_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d42987e0f438b246a23e89affc84a9bf960c56d1
|
| --- /dev/null
|
| +++ b/chromecast/media/audio/cast_audio_manager_factory.cc
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chromecast/media/audio/cast_audio_manager_factory.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "chromecast/media/audio/cast_audio_manager.h"
|
| +
|
| +namespace chromecast {
|
| +
|
| +CastAudioManagerFactory::CastAudioManagerFactory(
|
| + chromecast::CastAudioOutputDevice* audio_stream_output_device)
|
| + : audio_stream_output_device_(audio_stream_output_device) {
|
| + CHECK(audio_stream_output_device_);
|
| +}
|
| +
|
| +CastAudioManagerFactory::~CastAudioManagerFactory() {
|
| +}
|
| +
|
| +media::AudioManager* CastAudioManagerFactory::CreateInstance(
|
| + media::AudioLogFactory* audio_log_factory) {
|
| + // Create an AudioManager and pass ownership to the caller.
|
| + return new CastAudioManager(audio_log_factory, audio_stream_output_device_);
|
| +}
|
| +
|
| +} // namespace chromecast
|
|
|