summaryrefslogtreecommitdiff
path: root/libs/ardour/caimportable.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/caimportable.cc')
-rw-r--r--libs/ardour/caimportable.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/ardour/caimportable.cc b/libs/ardour/caimportable.cc
index b9bd20ddc3..13721f8334 100644
--- a/libs/ardour/caimportable.cc
+++ b/libs/ardour/caimportable.cc
@@ -55,12 +55,12 @@ CAImportableSource::~CAImportableSource ()
{
}
-framecnt_t
-CAImportableSource::read (Sample* buffer, framecnt_t nframes)
+samplecnt_t
+CAImportableSource::read (Sample* buffer, samplecnt_t nframes)
{
- framecnt_t nread = 0;
+ samplecnt_t nread = 0;
AudioBufferList abl;
- framecnt_t per_channel;
+ samplecnt_t per_channel;
bool at_end = false;
abl.mNumberBuffers = 1;
@@ -104,13 +104,13 @@ CAImportableSource::channels () const
return af.GetFileDataFormat().NumberChannels();
}
-framecnt_t
+samplecnt_t
CAImportableSource::length () const
{
- return af.GetNumberFrames();
+ return af.GetNumberSamples();
}
-framecnt_t
+samplecnt_t
CAImportableSource::samplerate () const
{
CAStreamBasicDescription client_asbd;
@@ -126,7 +126,7 @@ CAImportableSource::samplerate () const
}
void
-CAImportableSource::seek (framepos_t pos)
+CAImportableSource::seek (samplepos_t pos)
{
try {
af.Seek (pos);