OpenShot Library | libopenshot 0.3.3
Loading...
Searching...
No Matches
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
20namespace openshot {
26struct
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
42using AudioDeviceList = std::vector<std::pair<std::string, std::string>>;
43
46{
47public:
48 AudioDevices() = default;
49
53private:
54 AudioDeviceList m_devices;
55};
56
57}
58#endif
A class which probes the available audio devices.
AudioDeviceList getNames()
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29
std::vector< std::pair< std::string, std::string > > AudioDeviceList
This struct hold information about Audio Devices.