summaryrefslogtreecommitdiff
path: root/libs/ardour/diskstream.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-03 22:26:29 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-03 22:26:29 +0000
commit73192bc1a7ea55fa1864dc3826845b15c00dd2ec (patch)
treec0039f3f5a848aed6e880abf11519dad855fa899 /libs/ardour/diskstream.cc
parent74b4a3c77b08dc1e58274875604eb73e8492fa93 (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/diskstream.cc')
-rw-r--r--libs/ardour/diskstream.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/libs/ardour/diskstream.cc b/libs/ardour/diskstream.cc
index 5b3fe34870..bf77d7d6ad 100644
--- a/libs/ardour/diskstream.cc
+++ b/libs/ardour/diskstream.cc
@@ -66,7 +66,7 @@ using namespace PBD;
* default from configuration_vars.h). 0 is not a good value for
* allocating buffer sizes..
*/
-ARDOUR::nframes_t Diskstream::disk_io_chunk_frames = 1024 * 256;
+ARDOUR::framecnt_t Diskstream::disk_io_chunk_frames = 1024 * 256;
PBD::Signal0<void> Diskstream::DiskOverrun;
PBD::Signal0<void> Diskstream::DiskUnderrun;
@@ -110,9 +110,6 @@ Diskstream::Diskstream (Session &sess, const string &name, Flag flag)
, in_set_state (false)
, _persistent_alignment_style (ExistingMaterial)
, first_input_change (true)
- , scrub_start (0)
- , scrub_buffer_size (0)
- , scrub_offset (0)
, _flags (flag)
{
@@ -157,9 +154,6 @@ Diskstream::Diskstream (Session& sess, const XMLNode& /*node*/)
, in_set_state (false)
, _persistent_alignment_style (ExistingMaterial)
, first_input_change (true)
- , scrub_start (0)
- , scrub_buffer_size (0)
- , scrub_offset (0)
, _flags (Recordable)
{
}
@@ -238,7 +232,7 @@ Diskstream::realtime_set_speed (double sp, bool global)
if (new_speed != _actual_speed) {
- nframes_t required_wrap_size = (nframes_t) floor (_session.get_block_size() *
+ framecnt_t required_wrap_size = (framecnt_t) floor (_session.get_block_size() *
fabs (new_speed)) + 1;
if (required_wrap_size > wrap_buffer_size) {
@@ -329,7 +323,7 @@ Diskstream::get_captured_frames (uint32_t n) const
}
void
-Diskstream::set_roll_delay (ARDOUR::nframes_t nframes)
+Diskstream::set_roll_delay (ARDOUR::framecnt_t nframes)
{
_roll_delay = nframes;
}
@@ -639,7 +633,7 @@ Diskstream::route_going_away ()
void
Diskstream::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)
{
switch (ot) {
case OverlapNone: