OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
audio_device.hpp
1#pragma once
2
3#include <ossia/audio/audio_engine.hpp>
4#include <ossia/audio/audio_protocol.hpp>
5
6namespace ossia
7{
8class OSSIA_EXPORT audio_device
9{
10public:
11 audio_device(
12 std::string name = "audio", int bufferSize = 512, int sampleRate = 44100,
13 int inputs = 2, int outputs = 2);
14 audio_device(
15 std::unique_ptr<audio_protocol>, std::string name = "audio", int bufferSize = 512,
16 int sampleRate = 44100, int inputs = 2, int outputs = 2);
17 ~audio_device();
18
19 ossia::audio_parameter& get_main_in();
20 ossia::audio_parameter& get_main_out();
21
22 int get_buffer_size() const;
23 int get_sample_rate() const;
24
25 std::unique_ptr<ossia::audio_engine> engine;
26 ossia::net::generic_device device;
27 ossia::audio_protocol& protocol;
28
29private:
30 int m_bs{}, m_sr{};
31};
32}
Definition git_info.h:7