Implement missing required virtual fn -- fix Mac builds
authorRobin Gareus <robin@gareus.org>
Sat, 3 Aug 2019 23:37:36 +0000 (01:37 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 3 Aug 2019 23:37:36 +0000 (01:37 +0200)
libs/ardour/ardour/caimportable.h
libs/ardour/caimportable.cc

index 82f36f9ab6b74bd089646c452533ce3dd89ec956..446dd70b097bb0e7e027db8352cb0a241f936a9f 100644 (file)
@@ -39,11 +39,12 @@ class LIBARDOUR_API CAImportableSource : public ImportableSource {
        virtual ~CAImportableSource();
 
        samplecnt_t read (Sample* buffer, samplecnt_t nframes);
-       uint32_t  channels() const;
+       uint32_t    channels() const;
        samplecnt_t length() const;
        samplecnt_t samplerate() const;
-       void      seek (samplepos_t pos);
-       bool clamped_at_unity () const { return false; }
+       void        seek (samplepos_t pos);
+       samplepos_t natural_position ();
+       bool        clamped_at_unity () const { return false; }
 
    protected:
 #ifdef COREAUDIO105
index 9b6f4919e6dc71aeff2a1782e675ed586c6e33eb..6553a398a99eb3fb568db2da121a635efde49ff9 100644 (file)
@@ -136,4 +136,9 @@ CAImportableSource::seek (samplepos_t pos)
 }
 
 
-
+samplepos_t
+CAImportableSource::natural_position ()
+{
+       // TODO: extract timecode, if any
+       return 0;
+}