tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_WaveDeviceDescription.h
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
14//==============================================================================
20{
23
26
27 bool operator== (const ChannelIndex&) const;
28 bool operator!= (const ChannelIndex&) const;
29
30 int indexInDevice = -1; // Number of input or output in device
32};
33
36
39
44
49
50
51//==============================================================================
56{
59
61 WaveDeviceDescription (const juce::String& name, int leftChanIndex, int rightChanIndex, bool isEnabled);
62
64 WaveDeviceDescription (const juce::String& nm, const ChannelIndex* channels, int numChannels, bool isEnabled);
65
66 bool operator== (const WaveDeviceDescription&) const;
67 bool operator!= (const WaveDeviceDescription&) const;
68
69 juce::String name;
71 bool enabled = true;
72};
73
74}} // namespace tracktion { inline namespace engine
juce::AudioChannelSet createChannelSet(const std::vector< ChannelIndex > &channels)
Creates an AudioChannelSet for a list of ChannelIndexes.
juce::AudioChannelSet::ChannelType channelTypeFromAbbreviatedName(const juce::String &abbreviatedName)
Returns the ChannelType for an abbreviated name.
juce::String createDescriptionOfChannels(const std::vector< ChannelIndex > &channels)
Creates a String description of the channels.
juce::AudioChannelSet channelSetFromSpeakerArrangmentString(const juce::String &arrangement)
Creates an AudioChannelSet from a list of abbreviated channel names.
Describes a channel of a WaveInputDevice or WaveOutputDevice by specifying the channel index in the g...
ChannelIndex()
Creates a default, invalid ChannelIndex.
Describes a WaveDevice from which the WaveOutputDevice and WaveInputDevice lists will be built.
WaveDeviceDescription()
Creates an invalid device description.