Ingen  0.5.1
Public Member Functions | List of all members
Ingen::Server::DirectDriver Class Reference

Driver for running Ingen directly as a library. More...

#include <DirectDriver.hpp>

+ Inheritance diagram for Ingen::Server::DirectDriver:
+ Collaboration diagram for Ingen::Server::DirectDriver:

Public Member Functions

 DirectDriver (double sample_rate, SampleCount block_length, size_t seq_size)
 
virtual void activate ()
 Activate driver (begin processing graph and events). More...
 
virtual void deactivate ()
 Deactivate driver (stop processing graph and events). More...
 
virtual EnginePortcreate_port (DuplexPort *graph_port)
 Create a port ready to be inserted with add_input (non realtime). More...
 
virtual EnginePortget_port (const Raul::Path &path)
 Find a system port by path. More...
 
virtual void add_port (RunContext &context, EnginePort *port)
 Add a system visible port (e.g. More...
 
virtual void remove_port (RunContext &context, EnginePort *port)
 Remove a system visible port. More...
 
virtual void rename_port (const Raul::Path &old_path, const Raul::Path &new_path)
 Rename a system visible port. More...
 
virtual void port_property (const Raul::Path &path, const Raul::URI &uri, const Atom &value)
 Apply a system visible port property. More...
 
virtual void register_port (EnginePort &port)
 Register a system visible port. More...
 
virtual void unregister_port (EnginePort &port)
 Register a system visible port. More...
 
virtual SampleCount block_length () const
 Return the audio buffer size in frames.
 
virtual size_t seq_size () const
 Return the event buffer size in bytes.
 
virtual SampleCount sample_rate () const
 Return the sample rate in Hz.
 
virtual SampleCount frame_time () const
 Return the current frame time (running counter)
 
virtual void append_time_events (RunContext &context, Buffer &buffer)
 Append time events for this cycle to buffer. More...
 
virtual int real_time_priority ()
 Return the real-time priority of the audio thread, or -1. More...
 

Detailed Description

Driver for running Ingen directly as a library.

Member Function Documentation

§ activate()

virtual void Ingen::Server::DirectDriver::activate ( )
inlinevirtual

Activate driver (begin processing graph and events).

Reimplemented from Ingen::Server::Driver.

§ deactivate()

virtual void Ingen::Server::DirectDriver::deactivate ( )
inlinevirtual

Deactivate driver (stop processing graph and events).

Reimplemented from Ingen::Server::Driver.

§ create_port()

virtual EnginePort* Ingen::Server::DirectDriver::create_port ( DuplexPort graph_port)
inlinevirtual

Create a port ready to be inserted with add_input (non realtime).

May return NULL if the Driver can not create the port for some reason.

Implements Ingen::Server::Driver.

§ get_port()

virtual EnginePort* Ingen::Server::DirectDriver::get_port ( const Raul::Path &  path)
inlinevirtual

Find a system port by path.

Implements Ingen::Server::Driver.

§ add_port()

virtual void Ingen::Server::DirectDriver::add_port ( RunContext context,
EnginePort port 
)
inlinevirtual

Add a system visible port (e.g.

a port on the root graph).

Implements Ingen::Server::Driver.

§ remove_port()

virtual void Ingen::Server::DirectDriver::remove_port ( RunContext context,
EnginePort port 
)
inlinevirtual

Remove a system visible port.

This removes the port from the driver in the process thread but does not destroy the port. To actually remove the system port, unregister_port() must be called later in another thread.

Implements Ingen::Server::Driver.

§ rename_port()

virtual void Ingen::Server::DirectDriver::rename_port ( const Raul::Path &  old_path,
const Raul::Path &  new_path 
)
inlinevirtual

Rename a system visible port.

Implements Ingen::Server::Driver.

§ port_property()

virtual void Ingen::Server::DirectDriver::port_property ( const Raul::Path &  path,
const Raul::URI &  uri,
const Atom value 
)
inlinevirtual

Apply a system visible port property.

Implements Ingen::Server::Driver.

§ register_port()

virtual void Ingen::Server::DirectDriver::register_port ( EnginePort port)
inlinevirtual

Register a system visible port.

Implements Ingen::Server::Driver.

§ unregister_port()

virtual void Ingen::Server::DirectDriver::unregister_port ( EnginePort port)
inlinevirtual

Register a system visible port.

Implements Ingen::Server::Driver.

§ append_time_events()

virtual void Ingen::Server::DirectDriver::append_time_events ( RunContext context,
Buffer buffer 
)
inlinevirtual

Append time events for this cycle to buffer.

Implements Ingen::Server::Driver.

§ real_time_priority()

virtual int Ingen::Server::DirectDriver::real_time_priority ( )
inlinevirtual

Return the real-time priority of the audio thread, or -1.

Implements Ingen::Server::Driver.


The documentation for this class was generated from the following file: