Just Intonation  Version 1.3.0 (18)
Explore scale-independent dynamically adapting tuning in just intonation
audioparameters.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2016-2017 Karolin Stange, Christoph Wick, and Haye Hinrichsen
3  *
4  * This file is part of JustIntonation.
5  *
6  * JustIntonation is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * JustIntonation is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with JustIntonation. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 //=============================================================================
21 // Structure holding the parameters and status of an audio device
22 //=============================================================================
23 
24 #ifndef AUDIOPARAMETERS_H
25 #define AUDIOPARAMETERS_H
26 
27 #include <QString>
28 #include <QList>
29 
30 #include "system/shared.h"
31 
36 
38 {
39  QString deviceName;
41  int sampleSize;
42  int bufferSize;
43  int sampleRate;
44  QList<int> supportedSampleRates;
45 
46  bool active;
47  bool muted;
48 
49  // Default void constructor and comparison function:
51  bool operator==(const AudioParameters& p) const;
52 };
53 
54 
55 #endif // AUDIOPARAMETERS_H
int sampleSize
Sample size (16 or 24)
bool active
True of device is active.
QString deviceName
Name of the audio device.
Structure holding the parameters and status of an audio device.
int sampleRate
Actual sample rate.
int bufferSize
Buffer size of the device if applicable.
bool operator==(const AudioParameters &p) const
Compare two sets of audio parameters.
AudioParameters()
Default constructor for void audio parameters.
QList< int > supportedSampleRates
List of supported sample rates.
int channelCount
Number of channels (mono=1, stereo=2)
bool muted
True if device is muted.