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/diskstream.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/diskstream.h')
-rw-r--r-- | libs/ardour/ardour/diskstream.h | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/libs/ardour/ardour/diskstream.h b/libs/ardour/ardour/diskstream.h index 4eabe29d85..cd5932b3e5 100644 --- a/libs/ardour/ardour/diskstream.h +++ b/libs/ardour/ardour/diskstream.h @@ -79,8 +79,8 @@ class Diskstream : public SessionObject, public PublicDiskstream void set_align_style (AlignStyle); void set_persistent_align_style (AlignStyle a) { _persistent_alignment_style = a; } - nframes_t roll_delay() const { return _roll_delay; } - void set_roll_delay (nframes_t); + framecnt_t roll_delay() const { return _roll_delay; } + void set_roll_delay (framecnt_t); bool record_enabled() const { return g_atomic_int_get (&_record_enabled); } virtual void set_record_enabled (bool yn) = 0; @@ -118,8 +118,8 @@ class Diskstream : public SessionObject, public PublicDiskstream ChanCount n_channels() { return _n_channels; } - static nframes_t disk_io_frames() { return disk_io_chunk_frames; } - static void set_disk_io_chunk_frames (uint32_t n) { disk_io_chunk_frames = n; } + static framecnt_t disk_io_frames() { return disk_io_chunk_frames; } + static void set_disk_io_chunk_frames (framecnt_t n) { disk_io_chunk_frames = n; } /* Stateful */ virtual XMLNode& get_state(void) = 0; @@ -127,7 +127,7 @@ class Diskstream : public SessionObject, public PublicDiskstream virtual void monitor_input (bool) {} - nframes_t capture_offset() const { return _capture_offset; } + framecnt_t capture_offset() const { return _capture_offset; } virtual void set_capture_offset (); bool slaved() const { return _slaved; } @@ -144,7 +144,7 @@ class Diskstream : public SessionObject, public PublicDiskstream /** For non-butler contexts (allocates temporary working buffers) */ virtual int do_refill_with_alloc() = 0; - virtual void set_block_size (nframes_t) = 0; + virtual void set_block_size (pframes_t) = 0; bool pending_overwrite () const { return _pending_overwrite; @@ -186,8 +186,8 @@ class Diskstream : public SessionObject, public PublicDiskstream protected: friend class Track; - virtual int process (framepos_t transport_frame, nframes_t nframes, bool can_record, bool rec_monitors_input, bool& need_butler) = 0; - virtual bool commit (nframes_t nframes) = 0; + virtual int process (framepos_t transport_frame, pframes_t nframes, bool can_record, bool rec_monitors_input, bool& need_butler) = 0; + virtual bool commit (framecnt_t nframes) = 0; //private: @@ -239,9 +239,9 @@ class Diskstream : public SessionObject, public PublicDiskstream virtual void prepare_to_stop (framepos_t pos); void calculate_record_range(OverlapType ot, framepos_t transport_frame, framecnt_t nframes, - nframes_t& rec_nframes, nframes_t& rec_offset); + framecnt_t& rec_nframes, framecnt_t& rec_offset); - static nframes_t disk_io_chunk_frames; + static framecnt_t disk_io_chunk_frames; std::vector<CaptureInfo*> capture_info; mutable Glib::Mutex capture_info_lock; @@ -265,9 +265,9 @@ class Diskstream : public SessionObject, public PublicDiskstream framepos_t capture_start_frame; framecnt_t capture_captured; bool was_recording; - nframes_t adjust_capture_position; - nframes_t _capture_offset; - nframes_t _roll_delay; + framecnt_t adjust_capture_position; + framecnt_t _capture_offset; + framecnt_t _roll_delay; framepos_t first_recordable_frame; framepos_t last_recordable_frame; int last_possibly_recording; @@ -280,8 +280,8 @@ class Diskstream : public SessionObject, public PublicDiskstream bool _pending_overwrite; bool overwrite_queued; IOChange input_change_pending; - nframes_t wrap_buffer_size; - nframes_t speed_buffer_size; + framecnt_t wrap_buffer_size; + framecnt_t speed_buffer_size; double _speed; double _target_speed; @@ -299,10 +299,6 @@ class Diskstream : public SessionObject, public PublicDiskstream Glib::Mutex state_lock; - framepos_t scrub_start; - nframes_t scrub_buffer_size; - nframes_t scrub_offset; - PBD::ScopedConnectionList playlist_connections; PBD::ScopedConnection ic_connection; |