24 std::unique_ptr<juce::AudioDeviceManager>
25 manager(
new juce::AudioDeviceManager());
29 auto &types = manager->getAvailableDeviceTypes();
30 for (
auto* t : types) {
32 const auto names = t->getDeviceNames();
33 for (
const auto& name : names) {
34 m_devices.emplace_back(
35 name.toStdString(), t->getTypeName().toStdString());
45 std::unique_ptr<juce::AudioDeviceManager>
46 manager(
new juce::AudioDeviceManager());
50 auto &types = manager->getAvailableDeviceTypes();
51 for (
auto* t : types) {
53 const auto names = t->getDeviceNames(
true);
54 for (
const auto& name : names) {
55 m_devices.emplace_back(
56 name.toStdString(), t->getTypeName().toStdString());
std::vector< std::pair< std::string, std::string > > AudioDeviceList
Header file for Audio Device Info struct.
AudioDeviceList getInputNames()
Return only audio input devices, for recording workflows.
AudioDeviceList getNames()
This namespace is the default namespace for all code in the openshot library.
std::vector< std::pair< std::string, std::string > > AudioDeviceList