score
Home
Classes
Namespaces
Files
PortAudioInterface.hpp
1
#pragma once
2
#include <ossia/audio/portaudio_protocol.hpp>
3
4
#include <QString>
5
6
namespace
Audio
7
{
8
#if defined(OSSIA_AUDIO_PORTAUDIO)
9
struct
PortAudioScope
10
{
11
PortAudioScope
() { Pa_Initialize(); }
12
~
PortAudioScope
() { Pa_Terminate(); }
13
};
14
15
struct
PortAudioCard
16
{
17
QString api;
18
QString raw_name;
19
QString pretty_name;
20
PaDeviceIndex dev_idx{};
21
22
int
inputChan{};
23
int
outputChan{};
24
25
PaHostApiTypeId hostapi{};
26
27
double
rate{};
28
29
bool
defaultDevice{};
30
31
int
in_index{-1};
32
int
out_index{-1};
33
};
34
35
#endif
36
}
Audio::PortAudioCard
Definition:
PortAudioInterface.hpp:16
Audio::PortAudioScope
Definition:
PortAudioInterface.hpp:10