OpenShot Library | libopenshot
0.4.0
AudioDevices.h
Go to the documentation of this file.
1
9
// Copyright (c) 2008-2019 OpenShot Studios, LLC
10
//
11
// SPDX-License-Identifier: LGPL-3.0-or-later
12
13
#ifndef OPENSHOT_AUDIODEVICEINFO_H
14
#define OPENSHOT_AUDIODEVICEINFO_H
15
16
#include <string>
17
#include <vector>
18
#include <OpenShotAudio.h>
19
20
namespace
openshot
{
26
struct
27
AudioDeviceInfo
{
28
juce::String
type
;
29
juce::String
name
;
30
31
// Get the std::string device type
32
std::string
get_type
() {
33
return
type.toStdString();
34
}
35
36
// Get the std::string device name
37
std::string
get_name
() {
38
return
name.toStdString();
39
}
40
};
41
42
using
AudioDeviceList
= std::vector<std::pair<std::string, std::string>>;
43
45
class
AudioDevices
46
{
47
public
:
48
AudioDevices
() =
default
;
49
52
AudioDeviceList
getNames
();
53
private
:
54
AudioDeviceList
m_devices;
55
};
56
57
}
58
#endif
openshot::AudioDeviceInfo
This struct hold information about Audio Devices.
Definition:
AudioDevices.h:26
openshot::AudioDeviceList
std::vector< std::pair< std::string, std::string > > AudioDeviceList
Definition:
AudioDevices.h:42
openshot::AudioDeviceInfo::get_name
std::string get_name()
Definition:
AudioDevices.h:37
openshot::AudioDevices::AudioDevices
AudioDevices()=default
openshot
This namespace is the default namespace for all code in the openshot library.
Definition:
Compressor.h:28
openshot::AudioDeviceInfo::name
juce::String name
Definition:
AudioDevices.h:29
openshot::AudioDeviceInfo::type
juce::String type
Definition:
AudioDevices.h:28
openshot::AudioDevices::getNames
AudioDeviceList getNames()
Definition:
AudioDevices.cpp:21
openshot::AudioDevices
A class which probes the available audio devices.
Definition:
AudioDevices.h:45
openshot::AudioDeviceInfo::get_type
std::string get_type()
Definition:
AudioDevices.h:32
Generated by
1.8.17