From 73192bc1a7ea55fa1864dc3826845b15c00dd2ec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 3 Dec 2010 22:26:29 +0000 Subject: Remove all use of nframes_t. git-svn-id: svn://localhost/ardour2/branches/3.0@8166 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/sndfileimportable.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libs/ardour/sndfileimportable.cc') 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); } -- cgit v1.2.3