Loading...
Searching...
No Matches
AudioDevices.h
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_AUDIODEVICEINFO_H
#define OPENSHOT_AUDIODEVICEINFO_H
#include <string>
#include <vector>
#include <OpenShotAudio.h>
namespace openshot {
struct
AudioDeviceInfo {
juce::String type;
juce::String name;
// Get the std::string device type
std::string get_type() {
return type.toStdString();
}
// Get the std::string device name
std::string get_name() {
return name.toStdString();
}
};
using AudioDeviceList = std::vector<std::pair<std::string, std::string>>;
class AudioDevices
{
public:
AudioDevices() = default;
AudioDeviceList getNames();
private:
AudioDeviceList m_devices;
};
}
#endif
openshot::AudioDevices::getNames
AudioDeviceList getNames()
Definition AudioDevices.cpp:21
openshot::AudioDevices::AudioDevices
AudioDevices()=default
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29
openshot::AudioDeviceList
std::vector< std::pair< std::string, std::string > > AudioDeviceList
Definition AudioDevices.h:42
openshot::AudioDeviceInfo
This struct hold information about Audio Devices.
Definition AudioDevices.h:27
openshot::AudioDeviceInfo::name
juce::String name
Definition AudioDevices.h:29
openshot::AudioDeviceInfo::type
juce::String type
Definition AudioDevices.h:28
openshot::AudioDeviceInfo::get_type
std::string get_type()
Definition AudioDevices.h:32
openshot::AudioDeviceInfo::get_name
std::string get_name()
Definition AudioDevices.h:37