diff options
Diffstat (limited to 'libs/ardour/sndfileimportable.cc')
-rw-r--r-- | libs/ardour/sndfileimportable.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/sndfileimportable.cc b/libs/ardour/sndfileimportable.cc index b51ad3634a..75bfb9da57 100644 --- a/libs/ardour/sndfileimportable.cc +++ b/libs/ardour/sndfileimportable.cc @@ -43,10 +43,10 @@ SndFileImportableSource::~SndFileImportableSource () { } -nframes_t -SndFileImportableSource::read (Sample* buffer, nframes_t nframes) +framecnt_t +SndFileImportableSource::read (Sample* buffer, framecnt_t nframes) { - nframes_t per_channel = nframes / sf_info.channels; + framecnt_t per_channel = nframes / sf_info.channels; per_channel = sf_readf_float (in.get(), buffer, per_channel); return per_channel * sf_info.channels; } @@ -63,14 +63,14 @@ SndFileImportableSource::length () const return (framecnt_t) sf_info.frames; } -nframes_t -SndFileImportableSource::samplerate() const +framecnt_t +SndFileImportableSource::samplerate () const { return sf_info.samplerate; } void -SndFileImportableSource::seek (nframes_t /*pos*/) +SndFileImportableSource::seek (framepos_t /*pos*/) { sf_seek (in.get(), 0, SEEK_SET); } |