diff options
author | David Robillard <d@drobilla.net> | 2007-10-25 00:09:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-25 00:09:23 +0000 |
commit | f53f2e8e3306a56c99cc1c034f8aecee4325ec88 (patch) | |
tree | 9e8f37aa9f6a0cb178c5bcec4c6a2c1b0da0ad03 /libs/ardour/audio_port.cc | |
parent | 0cb6567836e523f276db8756a7d7c2629b6e6828 (diff) |
Clean/strengthen up constructor/type stuff in new port system.
git-svn-id: svn://localhost/ardour2/trunk@2572 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audio_port.cc')
-rw-r--r-- | libs/ardour/audio_port.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/ardour/audio_port.cc b/libs/ardour/audio_port.cc index 2e3682fe3b..13dad9b8e0 100644 --- a/libs/ardour/audio_port.cc +++ b/libs/ardour/audio_port.cc @@ -27,16 +27,14 @@ nframes_t AudioPort::_short_over_length = 2; nframes_t AudioPort::_long_over_length = 10; AudioPort::AudioPort(Flags flags) - : Port (flags), _buffer (0) + : Port (DataType::AUDIO, flags), _buffer (0) { - _type = DataType::AUDIO; reset(); } AudioPort::AudioPort(Flags flags, nframes_t nframes) - : Port (flags), _buffer (nframes) + : Port (DataType::AUDIO, flags), _buffer (nframes) { - _type = DataType::AUDIO; reset(); } |