summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-11 15:21:25 +0200
committerDavid Robillard <d@drobilla.net>2016-09-11 15:21:25 +0200
commitf3546d49dbd2d673138387a87bc523c26dcece68 (patch)
treeede285a773fc565205f82a2b0a62ebba6ea552e0 /src/server/PortImpl.hpp
parentfb2744d4265d26fb98b19689b50d127f32c66eab (diff)
downloadingen-f3546d49dbd2d673138387a87bc523c26dcece68.tar.gz
ingen-f3546d49dbd2d673138387a87bc523c26dcece68.tar.bz2
ingen-f3546d49dbd2d673138387a87bc523c26dcece68.zip
Remove last vestiges of multiple run contexts
Diffstat (limited to 'src/server/PortImpl.hpp')
-rw-r--r--src/server/PortImpl.hpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index d16ec10f..41666523 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -25,7 +25,7 @@
#include "BufferRef.hpp"
#include "NodeImpl.hpp"
#include "PortType.hpp"
-#include "ProcessContext.hpp"
+#include "RunContext.hpp"
#include "types.hpp"
namespace Raul { class Maid; }
@@ -60,7 +60,7 @@ public:
SetState() : state(State::SET), value(0), time(0) {}
- void set(const Context& context, FrameTime t, Sample v) {
+ void set(const RunContext& context, FrameTime t, Sample v) {
time = t;
value = v;
state = (time == context.start()
@@ -92,7 +92,7 @@ public:
* Audio thread. Returned value must be freed by caller.
* \a buffers must be poly() long
*/
- Raul::Array<Voice>* set_voices(ProcessContext& context,
+ Raul::Array<Voice>* set_voices(RunContext& context,
Raul::Array<Voice>* voices);
/** Prepare for a new (external) polyphony value.
@@ -107,7 +107,7 @@ public:
* \a poly Must be < the most recent value passed to prepare_poly.
*/
virtual bool apply_poly(
- ProcessContext& context, Raul::Maid& maid, uint32_t poly);
+ RunContext& context, Raul::Maid& maid, uint32_t poly);
const Atom& value() const { return _value; }
void set_value(const Atom& v) { _value = v; }
@@ -129,16 +129,16 @@ public:
return _prepared_voices->at(voice).buffer;
}
- void update_set_state(Context& context, uint32_t voice);
+ void update_set_state(RunContext& context, uint32_t voice);
- void set_voice_value(const Context& context,
- uint32_t voice,
- FrameTime time,
- Sample value);
+ void set_voice_value(const RunContext& context,
+ uint32_t voice,
+ FrameTime time,
+ Sample value);
- void set_control_value(const Context& context,
- FrameTime time,
- Sample value);
+ void set_control_value(const RunContext& context,
+ FrameTime time,
+ Sample value);
/** Prepare this port to use an external driver-provided buffer.
*
@@ -153,9 +153,9 @@ public:
bool is_driver_port() const { return _is_driver_port; }
/** Called once per process cycle */
- virtual void pre_process(Context& context) = 0;
- virtual void pre_run(Context& context) {}
- virtual void post_process(Context& context) = 0;
+ virtual void pre_process(RunContext& context) = 0;
+ virtual void pre_run(RunContext& context) {}
+ virtual void post_process(RunContext& context) = 0;
/** Empty buffer contents completely (ie silence) */
virtual void clear_buffers();
@@ -209,7 +209,7 @@ public:
return (_prepared_voices) ? _prepared_voices->size() : 1;
}
- void set_buffer_size(Context& context, BufferFactory& bufs, size_t size);
+ void set_buffer_size(RunContext& context, BufferFactory& bufs, size_t size);
/** Return true iff this port is explicitly monitored.
*
@@ -223,7 +223,7 @@ public:
void enable_monitoring(bool monitored) { _monitored = monitored; }
/** Monitor port value and broadcast to clients periodically. */
- void monitor(Context& context, bool send_now=false);
+ void monitor(RunContext& context, bool send_now=false);
void raise_set_by_user_flag() { _set_by_user = true; }