Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / media / base / fake_output_device.cc
blob287aff95f393955b8bf8fd4cd82bc8030e0e4199
1 // Copyright (c) 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.
5 #include "media/base/fake_output_device.h"
7 #include "base/callback.h"
9 namespace media {
11 FakeOutputDevice::FakeOutputDevice() {}
12 FakeOutputDevice::~FakeOutputDevice() {}
14 void FakeOutputDevice::SwitchOutputDevice(
15 const std::string& device_id,
16 const url::Origin& security_origin,
17 const SwitchOutputDeviceCB& callback) {
18 callback.Run(SWITCH_OUTPUT_DEVICE_RESULT_SUCCESS);
21 AudioParameters FakeOutputDevice::GetOutputParameters() {
22 return media::AudioParameters(
23 media::AudioParameters::AUDIO_FAKE, media::CHANNEL_LAYOUT_STEREO,
24 media::AudioParameters::kTelephoneSampleRate, 16, 1);
27 } // namespace media