diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-03 22:26:29 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-03 22:26:29 +0000 |
commit | 73192bc1a7ea55fa1864dc3826845b15c00dd2ec (patch) | |
tree | c0039f3f5a848aed6e880abf11519dad855fa899 /libs/ardour/ardour/audio_port.h | |
parent | 74b4a3c77b08dc1e58274875604eb73e8492fa93 (diff) |
Remove all use of nframes_t.
git-svn-id: svn://localhost/ardour2/branches/3.0@8166 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/audio_port.h')
-rw-r--r-- | libs/ardour/ardour/audio_port.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/ardour/ardour/audio_port.h b/libs/ardour/ardour/audio_port.h index 895cae99a6..748ef8263b 100644 --- a/libs/ardour/ardour/audio_port.h +++ b/libs/ardour/ardour/audio_port.h @@ -35,25 +35,25 @@ class AudioPort : public Port return DataType::AUDIO; } - void cycle_start (nframes_t); - void cycle_end (nframes_t); + void cycle_start (pframes_t); + void cycle_end (pframes_t); void cycle_split (); - size_t raw_buffer_size(jack_nframes_t nframes) const; + size_t raw_buffer_size (pframes_t nframes) const; - Buffer& get_buffer (nframes_t nframes, nframes_t offset = 0) { + Buffer& get_buffer (framecnt_t nframes, framecnt_t offset = 0) { return get_audio_buffer (nframes, offset); } - AudioBuffer& get_audio_buffer (nframes_t nframes, nframes_t offset = 0); + AudioBuffer& get_audio_buffer (framecnt_t nframes, framecnt_t offset = 0); - static nframes_t port_offset() { return _port_offset; } + static framecnt_t port_offset() { return _port_offset; } - static void set_port_offset (nframes_t off) { + static void set_port_offset (framecnt_t off) { _port_offset = off; } - static void increment_port_offset (nframes_t n) { + static void increment_port_offset (framecnt_t n) { _port_offset += n; } @@ -65,7 +65,7 @@ class AudioPort : public Port private: AudioBuffer* _buffer; - static nframes_t _port_offset; + static framecnt_t _port_offset; }; } // namespace ARDOUR |