Loading...
Searching...
No Matches
PortAudioInterface.hpp
1#pragma once
2#include <ossia/audio/portaudio_protocol.hpp>
3
4#include <QString>
5
6namespace Audio
7{
8#if defined(OSSIA_AUDIO_PORTAUDIO)
10{
11 PortAudioScope() { Pa_Initialize(); }
12 ~PortAudioScope() { Pa_Terminate(); }
13};
14
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}
Definition PortAudioInterface.hpp:16
Definition PortAudioInterface.hpp:10