| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/base/fake_output_device.h" | 5 #include "media/base/fake_output_device.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| 11 FakeOutputDevice::FakeOutputDevice() {} | 11 FakeOutputDevice::FakeOutputDevice() {} |
| 12 FakeOutputDevice::~FakeOutputDevice() {} | 12 FakeOutputDevice::~FakeOutputDevice() {} |
| 13 | 13 |
| 14 void FakeOutputDevice::SwitchOutputDevice( | 14 void FakeOutputDevice::SwitchOutputDevice( |
| 15 const std::string& device_id, | 15 const std::string& device_id, |
| 16 const GURL& security_origin, | 16 const url::Origin& security_origin, |
| 17 const SwitchOutputDeviceCB& callback) { | 17 const SwitchOutputDeviceCB& callback) { |
| 18 callback.Run(SWITCH_OUTPUT_DEVICE_RESULT_SUCCESS); | 18 callback.Run(SWITCH_OUTPUT_DEVICE_RESULT_SUCCESS); |
| 19 } | 19 } |
| 20 | 20 |
| 21 AudioParameters FakeOutputDevice::GetOutputParameters() { |
| 22 return media::AudioParameters( |
| 23 media::AudioParameters::AUDIO_FAKE, media::CHANNEL_LAYOUT_STEREO, |
| 24 media::AudioParameters::kTelephoneSampleRate, 16, 1); |
| 25 } |
| 26 |
| 21 } // namespace media | 27 } // namespace media |
| OLD | NEW |