From 39d5400b39c8089287d5d294becae1268d232d31 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Feb 2007 03:22:42 +0000 Subject: Mad sed-fu for consistent private member naming. git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/TypedConnection.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/libs/engine/TypedConnection.h') diff --git a/src/libs/engine/TypedConnection.h b/src/libs/engine/TypedConnection.h index c6b0b0cf..7e28697d 100644 --- a/src/libs/engine/TypedConnection.h +++ b/src/libs/engine/TypedConnection.h @@ -41,12 +41,12 @@ public: void process(SampleCount nframes, FrameTime start, FrameTime end); - inline OutputPort* src_port() const { return dynamic_cast*>(m_src_port); } - inline InputPort* dst_port() const { return dynamic_cast*>(m_dst_port); } + inline OutputPort* src_port() const { return dynamic_cast*>(_src_port); } + inline InputPort* dst_port() const { return dynamic_cast*>(_dst_port); } /** Used by some (recursive) events to prevent double disconnections */ - bool pending_disconnection() { return m_pending_disconnection; } - void pending_disconnection(bool b) { m_pending_disconnection = b; } + bool pending_disconnection() { return _pending_disconnection; } + void pending_disconnection(bool b) { _pending_disconnection = b; } /** Get the buffer for a particular voice. * A TypedConnection is smart - it knows the destination port respondering the @@ -58,10 +58,10 @@ public: void set_buffer_size(size_t size); private: - Buffer* m_local_buffer; ///< Only used for poly->mono connections - bool m_must_mix; - size_t m_buffer_size; - bool m_pending_disconnection; + Buffer* _local_buffer; ///< Only used for poly->mono connections + bool _must_mix; + size_t _buffer_size; + bool _pending_disconnection; }; @@ -69,10 +69,10 @@ template <> inline Buffer* TypedConnection::buffer(size_t voice) const { - TypedPort* const src_port = (TypedPort*)m_src_port; + TypedPort* const src_port = (TypedPort*)_src_port; - if (m_must_mix) { - return m_local_buffer; + if (_must_mix) { + return _local_buffer; } else { if (src_port->poly() == 1) return src_port->buffer(0); @@ -87,10 +87,10 @@ inline Buffer* TypedConnection::buffer(size_t voice) const { // No such thing as polyphonic MIDI ports - assert(m_src_port->poly() == 1); - assert(m_dst_port->poly() == 1); + assert(_src_port->poly() == 1); + assert(_dst_port->poly() == 1); - TypedPort* const src_port = (TypedPort*)m_src_port; + TypedPort* const src_port = (TypedPort*)_src_port; return src_port->buffer(0); } -- cgit v1.2.1