ardour
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ARDOUR::SndFileImportableSource Class Reference

#include <sndfileimportable.h>

Inheritance diagram for ARDOUR::SndFileImportableSource:
ARDOUR::ImportableSource

Public Member Functions

 SndFileImportableSource (const std::string &path)
 
virtual ~SndFileImportableSource ()
 
framecnt_t read (Sample *buffer, framecnt_t nframes)
 
uint32_t channels () const
 
framecnt_t length () const
 
framecnt_t samplerate () const
 
void seek (framepos_t pos)
 
framepos_t natural_position () const
 
bool clamped_at_unity () const
 
- Public Member Functions inherited from ARDOUR::ImportableSource
 ImportableSource ()
 
virtual ~ImportableSource ()
 
virtual float ratio () const
 

Protected Member Functions

int64_t get_timecode_info (SNDFILE *, SF_BROADCAST_INFO *, bool &)
 

Protected Attributes

SF_INFO sf_info
 
boost::shared_ptr< SNDFILE > in
 
int64_t timecode
 

Detailed Description

Definition at line 31 of file sndfileimportable.h.

Constructor & Destructor Documentation

SndFileImportableSource::SndFileImportableSource ( const std::string &  path)

Definition at line 68 of file sndfileimportable.cc.

SndFileImportableSource::~SndFileImportableSource ( )
virtual

Definition at line 85 of file sndfileimportable.cc.

Member Function Documentation

uint32_t SndFileImportableSource::channels ( ) const
virtual

Implements ARDOUR::ImportableSource.

Definition at line 98 of file sndfileimportable.cc.

bool SndFileImportableSource::clamped_at_unity ( ) const
virtual

Implements ARDOUR::ImportableSource.

Definition at line 128 of file sndfileimportable.cc.

int64_t SndFileImportableSource::get_timecode_info ( SNDFILE *  sf,
SF_BROADCAST_INFO *  binfo,
bool &  exists 
)
protected

Definition at line 32 of file sndfileimportable.cc.

framecnt_t SndFileImportableSource::length ( ) const
virtual

Implements ARDOUR::ImportableSource.

Definition at line 104 of file sndfileimportable.cc.

framepos_t SndFileImportableSource::natural_position ( ) const
virtual

Implements ARDOUR::ImportableSource.

Definition at line 122 of file sndfileimportable.cc.

framecnt_t SndFileImportableSource::read ( Sample buffer,
framecnt_t  nframes 
)
virtual

Implements ARDOUR::ImportableSource.

Definition at line 90 of file sndfileimportable.cc.

framecnt_t SndFileImportableSource::samplerate ( ) const
virtual

Implements ARDOUR::ImportableSource.

Definition at line 110 of file sndfileimportable.cc.

void SndFileImportableSource::seek ( framepos_t  pos)
virtual

Implements ARDOUR::ImportableSource.

Definition at line 116 of file sndfileimportable.cc.

Member Data Documentation

boost::shared_ptr<SNDFILE> ARDOUR::SndFileImportableSource::in
protected

Definition at line 46 of file sndfileimportable.h.

SF_INFO ARDOUR::SndFileImportableSource::sf_info
protected

Definition at line 45 of file sndfileimportable.h.

int64_t ARDOUR::SndFileImportableSource::timecode
protected

Definition at line 52 of file sndfileimportable.h.


The documentation for this class was generated from the following files: