summaryrefslogtreecommitdiffstats
path: root/src/server/PortImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-23 00:28:01 +0000
committerDavid Robillard <d@drobilla.net>2012-04-23 00:28:01 +0000
commit170025af736c1bfea56799f64384c4915047b8e5 (patch)
tree6b5ea57bac0e72e115420f0e2c55dd086e4b2358 /src/server/PortImpl.hpp
parent034c8948e8fe47b487e17a8dd438f3a9857d571a (diff)
downloadingen-170025af736c1bfea56799f64384c4915047b8e5.tar.gz
ingen-170025af736c1bfea56799f64384c4915047b8e5.tar.bz2
ingen-170025af736c1bfea56799f64384c4915047b8e5.zip
Maybe fix boost compilation errors.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4245 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PortImpl.hpp')
-rw-r--r--src/server/PortImpl.hpp41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index 033f66e1..2c106f32 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -37,7 +37,6 @@ namespace Ingen {
namespace Server {
class NodeImpl;
-class Buffer;
class BufferFactory;
/** A port on a Node.
@@ -61,7 +60,7 @@ public:
* Audio thread. Returned value must be freed by caller.
* \a buffers must be poly() long
*/
- Raul::Array<BufferFactory::Ref>* set_buffers(Raul::Array<BufferFactory::Ref>* buffers);
+ Raul::Array<Buffer::Ref>* set_buffers(Raul::Array<Buffer::Ref>* buffers);
/** Prepare for a new (external) polyphony value.
*
@@ -91,10 +90,10 @@ public:
void set_minimum(const Raul::Atom& min) { _min = min; }
void set_maximum(const Raul::Atom& max) { _max = max; }
- inline BufferFactory::Ref buffer(uint32_t voice) const {
+ inline Buffer::Ref buffer(uint32_t voice) const {
return _buffers->at((_poly == 1) ? 0 : voice);
}
- inline BufferFactory::Ref prepared_buffer(uint32_t voice) const {
+ inline Buffer::Ref prepared_buffer(uint32_t voice) const {
return _prepared_buffers->at(voice);
}
@@ -105,9 +104,9 @@ public:
/** Empty buffer contents completely (ie silence) */
virtual void clear_buffers();
- virtual bool get_buffers(BufferFactory& bufs,
- Raul::Array<BufferFactory::Ref>* buffers,
- uint32_t poly) const = 0;
+ virtual bool get_buffers(BufferFactory& bufs,
+ Raul::Array<Buffer::Ref>* buffers,
+ uint32_t poly) const = 0;
void setup_buffers(BufferFactory& bufs, uint32_t poly) {
get_buffers(bufs, _buffers, poly);
@@ -159,20 +158,20 @@ protected:
const Raul::Atom& value,
size_t buffer_size);
- BufferFactory& _bufs;
- uint32_t _index;
- uint32_t _poly;
- uint32_t _buffer_size;
- PortType _type;
- LV2_URID _buffer_type;
- Raul::Atom _value;
- Raul::Atom _min;
- Raul::Atom _max;
- Raul::Atom _last_broadcasted_value;
- Raul::Array<BufferFactory::Ref>* _buffers;
- Raul::Array<BufferFactory::Ref>* _prepared_buffers;
- bool _broadcast;
- bool _set_by_user;
+ BufferFactory& _bufs;
+ uint32_t _index;
+ uint32_t _poly;
+ uint32_t _buffer_size;
+ PortType _type;
+ LV2_URID _buffer_type;
+ Raul::Atom _value;
+ Raul::Atom _min;
+ Raul::Atom _max;
+ Raul::Atom _last_broadcasted_value;
+ Raul::Array<Buffer::Ref>* _buffers;
+ Raul::Array<Buffer::Ref>* _prepared_buffers;
+ bool _broadcast;
+ bool _set_by_user;
};
} // namespace Server