globally change all use of "frame" to refer to audio into "sample".
[ardour.git] / libs / ardour / source.cc
index 187eee8085dd2aeb13165830cc5cf118ca9561e0..6ae1aca1ca1defcd9afaafd7373daf1b997cfd32 100644 (file)
@@ -200,8 +200,8 @@ Source::load_transients (const string& path)
                        break;
                }
 
-               framepos_t frame = (framepos_t) floor (val * _session.frame_rate());
-               transients.push_back (frame);
+               samplepos_t sample = (samplepos_t) floor (val * _session.sample_rate());
+               transients.push_back (sample);
        }
 
        ::fclose (tf);
@@ -265,7 +265,7 @@ Source::mark_for_remove ()
 }
 
 void
-Source::set_timeline_position (framepos_t pos)
+Source::set_timeline_position (samplepos_t pos)
 {
        _timeline_position = pos;
 }