ardour
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ARDOUR::ResampledImportableSource Class Reference

#include <resampled_source.h>

Inheritance diagram for ARDOUR::ResampledImportableSource:
ARDOUR::ImportableSource

Public Member Functions

 ResampledImportableSource (boost::shared_ptr< ImportableSource >, framecnt_t rate, SrcQuality)
 
 ~ResampledImportableSource ()
 
framecnt_t read (Sample *buffer, framecnt_t nframes)
 
float ratio () const
 
uint32_t channels () const
 
framecnt_t length () const
 
framecnt_t samplerate () const
 
void seek (framepos_t)
 
framepos_t natural_position () const
 
bool clamped_at_unity () const
 
- Public Member Functions inherited from ARDOUR::ImportableSource
 ImportableSource ()
 
virtual ~ImportableSource ()
 

Static Public Attributes

static const uint32_t blocksize = 16384U
 

Private Attributes

boost::shared_ptr
< ImportableSource
source
 
float * input
 
int _src_type
 
SRC_STATE * src_state
 
SRC_DATA src_data
 

Detailed Description

Definition at line 31 of file resampled_source.h.

Constructor & Destructor Documentation

ResampledImportableSource::ResampledImportableSource ( boost::shared_ptr< ImportableSource src,
framecnt_t  rate,
SrcQuality  srcq 
)

Definition at line 35 of file resampled_source.cc.

ResampledImportableSource::~ResampledImportableSource ( )

Definition at line 66 of file resampled_source.cc.

Member Function Documentation

uint32_t ARDOUR::ResampledImportableSource::channels ( ) const
inlinevirtual

Implements ARDOUR::ImportableSource.

Definition at line 40 of file resampled_source.h.

bool ARDOUR::ResampledImportableSource::clamped_at_unity ( ) const
inlinevirtual

Implements ARDOUR::ImportableSource.

Definition at line 46 of file resampled_source.h.

framecnt_t ARDOUR::ResampledImportableSource::length ( ) const
inlinevirtual

Implements ARDOUR::ImportableSource.

Definition at line 41 of file resampled_source.h.

framepos_t ResampledImportableSource::natural_position ( ) const
virtual

Implements ARDOUR::ImportableSource.

Definition at line 142 of file resampled_source.cc.

float ARDOUR::ResampledImportableSource::ratio ( ) const
inlinevirtual

Reimplemented from ARDOUR::ImportableSource.

Definition at line 39 of file resampled_source.h.

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

Implements ARDOUR::ImportableSource.

Definition at line 73 of file resampled_source.cc.

framecnt_t ARDOUR::ResampledImportableSource::samplerate ( ) const
inlinevirtual

Implements ARDOUR::ImportableSource.

Definition at line 42 of file resampled_source.h.

void ResampledImportableSource::seek ( framepos_t  pos)
virtual

Implements ARDOUR::ImportableSource.

Definition at line 119 of file resampled_source.cc.

Member Data Documentation

int ARDOUR::ResampledImportableSource::_src_type
private

Definition at line 56 of file resampled_source.h.

const uint32_t ResampledImportableSource::blocksize = 16384U
static

Definition at line 51 of file resampled_source.h.

float* ARDOUR::ResampledImportableSource::input
private

Definition at line 55 of file resampled_source.h.

boost::shared_ptr<ImportableSource> ARDOUR::ResampledImportableSource::source
private

Definition at line 54 of file resampled_source.h.

SRC_DATA ARDOUR::ResampledImportableSource::src_data
private

Definition at line 58 of file resampled_source.h.

SRC_STATE* ARDOUR::ResampledImportableSource::src_state
private

Definition at line 57 of file resampled_source.h.


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