1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
media / audio / audio_sink_parameters.h [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_AUDIO_AUDIO_SINK_PARAMETERS_H_
#define MEDIA_AUDIO_AUDIO_SINK_PARAMETERS_H_
#include <string>
#include "base/unguessable_token.h"
#include "media/base/media_export.h"
namespace media {
// The set of parameters used to create an AudioOutputDevice.
// |session_id| and |device_id| are used to select which device to
// use. |device_id| is preferred over |session_id| if both are set
// (i.e. session_id is nonzero). If neither is set, the default output device
// will be selected. This is the state when default constructed.
struct MEDIA_EXPORT AudioSinkParameters final {
AudioSinkParameters();
AudioSinkParameters(const base::UnguessableToken& session_id,
const std::string& device_id);
AudioSinkParameters(const AudioSinkParameters& params);
~AudioSinkParameters();
base::UnguessableToken session_id;
std::string device_id;
};
} // namespace media
#endif // MEDIA_AUDIO_AUDIO_SINK_PARAMETERS_H_