Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::SndFileImportableSource Class Reference

#include <sndfileimportable.h>

Inheritance diagram for ARDOUR::SndFileImportableSource:
[legend]

Public Member Functions

 SndFileImportableSource (const std::string &path)
 
virtual ~SndFileImportableSource ()
 
samplecnt_t read (Sample *buffer, samplecnt_t nframes)
 
uint32_t channels () const
 
samplecnt_t length () const
 
samplecnt_t samplerate () const
 
void seek (samplepos_t pos)
 
bool clamped_at_unity () const
 
samplepos_t natural_position () 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
 
std::shared_ptr< SNDFILE > in
 
int64_t timecode
 

Detailed Description

Definition at line 32 of file sndfileimportable.h.

Constructor & Destructor Documentation

◆ SndFileImportableSource()

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

◆ ~SndFileImportableSource()

virtual ARDOUR::SndFileImportableSource::~SndFileImportableSource ( )
virtual

Member Function Documentation

◆ channels()

uint32_t ARDOUR::SndFileImportableSource::channels ( ) const
virtual

◆ clamped_at_unity()

bool ARDOUR::SndFileImportableSource::clamped_at_unity ( ) const
virtual

◆ get_timecode_info()

int64_t ARDOUR::SndFileImportableSource::get_timecode_info ( SNDFILE *  ,
SF_BROADCAST_INFO *  ,
bool &   
)
protected

◆ length()

samplecnt_t ARDOUR::SndFileImportableSource::length ( ) const
virtual

◆ natural_position()

samplepos_t ARDOUR::SndFileImportableSource::natural_position ( ) const
virtual

◆ read()

samplecnt_t ARDOUR::SndFileImportableSource::read ( Sample buffer,
samplecnt_t  nframes 
)
virtual

◆ samplerate()

samplecnt_t ARDOUR::SndFileImportableSource::samplerate ( ) const
virtual

◆ seek()

void ARDOUR::SndFileImportableSource::seek ( samplepos_t  pos)
virtual

Member Data Documentation

◆ in

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

Definition at line 47 of file sndfileimportable.h.

◆ sf_info

SF_INFO ARDOUR::SndFileImportableSource::sf_info
protected

Definition at line 46 of file sndfileimportable.h.

◆ timecode

int64_t ARDOUR::SndFileImportableSource::timecode
protected

Definition at line 52 of file sndfileimportable.h.


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