diff options
author | David Robillard <d@drobilla.net> | 2017-02-18 18:32:02 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-02-18 19:38:13 +0100 |
commit | f240b08a1799b3aa6a29701c90388d51c0c1b2ce (patch) | |
tree | 28ec7429aa10f28710023fdcc43d07a4f0b4ebc9 /src/server/EnginePort.hpp | |
parent | 6141b832946006a6ec3c1a3a70bd729c0404771e (diff) | |
download | ingen-f240b08a1799b3aa6a29701c90388d51c0c1b2ce.tar.gz ingen-f240b08a1799b3aa6a29701c90388d51c0c1b2ce.tar.bz2 ingen-f240b08a1799b3aa6a29701c90388d51c0c1b2ce.zip |
Add experimental PortAudio driver
Diffstat (limited to 'src/server/EnginePort.hpp')
-rw-r--r-- | src/server/EnginePort.hpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/server/EnginePort.hpp b/src/server/EnginePort.hpp index f14243e7..ee00d4ed 100644 --- a/src/server/EnginePort.hpp +++ b/src/server/EnginePort.hpp @@ -40,20 +40,24 @@ public: : _graph_port(port) , _buffer(NULL) , _handle(NULL) + , _driver_index(0) {} - void set_buffer(void* buf) { _buffer = buf; } - void set_handle(void* buf) { _handle = buf; } + void set_buffer(void* buf) { _buffer = buf; } + void set_handle(void* buf) { _handle = buf; } + void set_driver_index(uint32_t index) { _driver_index = index; } - void* buffer() const { return _buffer; } - void* handle() const { return _handle; } - DuplexPort* graph_port() const { return _graph_port; } - bool is_input() const { return _graph_port->is_input(); } + void* buffer() const { return _buffer; } + void* handle() const { return _handle; } + uint32_t driver_index() const { return _driver_index; } + DuplexPort* graph_port() const { return _graph_port; } + bool is_input() const { return _graph_port->is_input(); } protected: DuplexPort* _graph_port; void* _buffer; void* _handle; + uint32_t _driver_index; }; } // namespace Server |