make resampled sources (during import) report their "natural position" (i.e. BWF...
[ardour.git] / libs / ardour / sndfileimportable.cc
index 99697b888f6918dc613e39afd874c778e1ac4f45..b51ad3634a974aa4b4fcaa2976c690c0a30b2749 100644 (file)
@@ -57,10 +57,10 @@ SndFileImportableSource::channels () const
        return sf_info.channels;
 }
 
-nframes_t
+framecnt_t
 SndFileImportableSource::length () const
 {
-       return sf_info.frames;
+       return (framecnt_t) sf_info.frames;
 }
 
 nframes_t
@@ -75,10 +75,10 @@ SndFileImportableSource::seek (nframes_t /*pos*/)
        sf_seek (in.get(), 0, SEEK_SET);
 }
 
-nframes64_t
+framepos_t
 SndFileImportableSource::natural_position () const
 {
-       return timecode;
+       return (framepos_t) timecode;
 }
 
 bool