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

Side by Side Diff: media/audio/audio_device_name.h

Issue 8162015: The first step to add device selection to linux. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: rebase and update Created 9 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/audio/audio_device_name.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_
6 #define MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ 6 #define MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 namespace media { 11 namespace media {
12 12
13 struct AudioDeviceName { 13 struct AudioDeviceName {
14 std::string device_name; // Name and also display name of the device. 14 AudioDeviceName();
15 AudioDeviceName(std::string device_name, std::string unique_id);
16
17 std::string device_name; // Friendly name of the device.
15 std::string unique_id; // Unique identifier for the device. 18 std::string unique_id; // Unique identifier for the device.
16 }; 19 };
17 20
18 typedef std::list<AudioDeviceName> AudioDeviceNames; 21 typedef std::list<AudioDeviceName> AudioDeviceNames;
19 22
20 } // namespace media 23 } // namespace media
21 24
22 #endif // MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_ 25 #endif // MEDIA_AUDIO_AUDIO_DEVICE_NAME_H_
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_device_name.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698