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

Side by Side Diff: media/base/fake_output_device.cc

Issue 1323403005: Allow AudioOutputDevice objects to be initialized with a specific hardware output device and store … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Palmer's comments 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698