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

#include <resampled_source.h>

Inheritance diagram for ARDOUR::ResampledImportableSource:
[legend]

Public Member Functions

 ResampledImportableSource (std::shared_ptr< ImportableSource >, samplecnt_t rate, SrcQuality)
 
 ~ResampledImportableSource ()
 
samplecnt_t read (Sample *buffer, samplecnt_t nframes)
 
float ratio () const
 
uint32_t channels () const
 
samplecnt_t length () const
 
samplecnt_t samplerate () const
 
void seek (samplepos_t)
 
samplepos_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
 

Private Attributes

std::shared_ptr< ImportableSourcesource
 
float * _input
 
int _src_type
 
SRC_STATE * _src_state
 
SRC_DATA _src_data
 
bool _end_of_input
 

Detailed Description

Definition at line 32 of file resampled_source.h.

Constructor & Destructor Documentation

◆ ResampledImportableSource()

ARDOUR::ResampledImportableSource::ResampledImportableSource ( std::shared_ptr< ImportableSource ,
samplecnt_t  rate,
SrcQuality   
)

◆ ~ResampledImportableSource()

ARDOUR::ResampledImportableSource::~ResampledImportableSource ( )

Member Function Documentation

◆ channels()

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

Implements ARDOUR::ImportableSource.

Definition at line 41 of file resampled_source.h.

◆ clamped_at_unity()

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

Implements ARDOUR::ImportableSource.

Definition at line 47 of file resampled_source.h.

◆ length()

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

Implements ARDOUR::ImportableSource.

Definition at line 42 of file resampled_source.h.

◆ natural_position()

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

◆ ratio()

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

Reimplemented from ARDOUR::ImportableSource.

Definition at line 40 of file resampled_source.h.

◆ read()

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

◆ samplerate()

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

Implements ARDOUR::ImportableSource.

Definition at line 43 of file resampled_source.h.

◆ seek()

void ARDOUR::ResampledImportableSource::seek ( samplepos_t  )
virtual

Member Data Documentation

◆ _end_of_input

bool ARDOUR::ResampledImportableSource::_end_of_input
private

Definition at line 60 of file resampled_source.h.

◆ _input

float* ARDOUR::ResampledImportableSource::_input
private

Definition at line 56 of file resampled_source.h.

◆ _src_data

SRC_DATA ARDOUR::ResampledImportableSource::_src_data
private

Definition at line 59 of file resampled_source.h.

◆ _src_state

SRC_STATE* ARDOUR::ResampledImportableSource::_src_state
private

Definition at line 58 of file resampled_source.h.

◆ _src_type

int ARDOUR::ResampledImportableSource::_src_type
private

Definition at line 57 of file resampled_source.h.

◆ blocksize

const uint32_t ARDOUR::ResampledImportableSource::blocksize
static

Definition at line 52 of file resampled_source.h.

◆ source

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

Definition at line 55 of file resampled_source.h.


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