diff options
author | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
commit | 39d5400b39c8089287d5d294becae1268d232d31 (patch) | |
tree | 0cf73ef86233121bc7f0408ca536aad196d3166c /src/libs/engine/TypedConnection.h | |
parent | e135edf1e65ac978f86f4849bd3667299dd69c7e (diff) | |
download | ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.gz ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.bz2 ingen-39d5400b39c8089287d5d294becae1268d232d31.zip |
Mad sed-fu for consistent private member naming.
git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/TypedConnection.h')
-rw-r--r-- | src/libs/engine/TypedConnection.h | 28 |
1 files changed, 14 insertions, 14 deletions
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<T>* src_port() const { return dynamic_cast<OutputPort<T>*>(m_src_port); } - inline InputPort<T>* dst_port() const { return dynamic_cast<InputPort<T>*>(m_dst_port); } + inline OutputPort<T>* src_port() const { return dynamic_cast<OutputPort<T>*>(_src_port); } + inline InputPort<T>* dst_port() const { return dynamic_cast<InputPort<T>*>(_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<T>* m_local_buffer; ///< Only used for poly->mono connections - bool m_must_mix; - size_t m_buffer_size; - bool m_pending_disconnection; + Buffer<T>* _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<Sample>* TypedConnection<Sample>::buffer(size_t voice) const { - TypedPort<Sample>* const src_port = (TypedPort<Sample>*)m_src_port; + TypedPort<Sample>* const src_port = (TypedPort<Sample>*)_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<MidiMessage>* TypedConnection<MidiMessage>::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<MidiMessage>* const src_port = (TypedPort<MidiMessage>*)m_src_port; + TypedPort<MidiMessage>* const src_port = (TypedPort<MidiMessage>*)_src_port; return src_port->buffer(0); } |