ardour
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ARDOUR::RegionExportChannelFactory Class Reference

Handles RegionExportChannels and does actual reading from region. More...

#include <export_channel.h>

Public Types

enum  Type { None, Raw, Fades, Processed }
 

Public Member Functions

 RegionExportChannelFactory (Session *session, AudioRegion const &region, AudioTrack &track, Type type)
 
 ~RegionExportChannelFactory ()
 
ExportChannelPtr create (uint32_t channel)
 
void read (uint32_t channel, Sample const *&data, framecnt_t frames_to_read)
 

Private Member Functions

int new_cycle_started (framecnt_t)
 
void update_buffers (framecnt_t frames)
 

Private Attributes

AudioRegion const & region
 
AudioTracktrack
 
Type type
 
framecnt_t frames_per_cycle
 
size_t n_channels
 
BufferSet buffers
 
bool buffers_up_to_date
 
framecnt_t region_start
 
framecnt_t position
 
boost::scoped_array< Samplemixdown_buffer
 
boost::scoped_array< Samplegain_buffer
 
PBD::ScopedConnection export_connection
 

Detailed Description

Handles RegionExportChannels and does actual reading from region.

Definition at line 92 of file export_channel.h.

Member Enumeration Documentation

Enumerator
None 
Raw 
Fades 
Processed 

Definition at line 95 of file export_channel.h.

Constructor & Destructor Documentation

RegionExportChannelFactory::RegionExportChannelFactory ( Session session,
AudioRegion const &  region,
AudioTrack track,
Type  type 
)

Definition at line 116 of file export_channel.cc.

RegionExportChannelFactory::~RegionExportChannelFactory ( )

Definition at line 150 of file export_channel.cc.

Member Function Documentation

ExportChannelPtr RegionExportChannelFactory::create ( uint32_t  channel)

Definition at line 155 of file export_channel.cc.

int ARDOUR::RegionExportChannelFactory::new_cycle_started ( framecnt_t  )
inlineprivate

Definition at line 110 of file export_channel.h.

void RegionExportChannelFactory::read ( uint32_t  channel,
Sample const *&  data,
framecnt_t  frames_to_read 
)

Definition at line 162 of file export_channel.cc.

void RegionExportChannelFactory::update_buffers ( framecnt_t  frames)
private

Definition at line 176 of file export_channel.cc.

Member Data Documentation

BufferSet ARDOUR::RegionExportChannelFactory::buffers
private

Definition at line 119 of file export_channel.h.

bool ARDOUR::RegionExportChannelFactory::buffers_up_to_date
private

Definition at line 120 of file export_channel.h.

PBD::ScopedConnection ARDOUR::RegionExportChannelFactory::export_connection
private

Definition at line 127 of file export_channel.h.

framecnt_t ARDOUR::RegionExportChannelFactory::frames_per_cycle
private

Definition at line 117 of file export_channel.h.

boost::scoped_array<Sample> ARDOUR::RegionExportChannelFactory::gain_buffer
private

Definition at line 125 of file export_channel.h.

boost::scoped_array<Sample> ARDOUR::RegionExportChannelFactory::mixdown_buffer
private

Definition at line 124 of file export_channel.h.

size_t ARDOUR::RegionExportChannelFactory::n_channels
private

Definition at line 118 of file export_channel.h.

framecnt_t ARDOUR::RegionExportChannelFactory::position
private

Definition at line 122 of file export_channel.h.

AudioRegion const& ARDOUR::RegionExportChannelFactory::region
private

Definition at line 113 of file export_channel.h.

framecnt_t ARDOUR::RegionExportChannelFactory::region_start
private

Definition at line 121 of file export_channel.h.

AudioTrack& ARDOUR::RegionExportChannelFactory::track
private

Definition at line 114 of file export_channel.h.

Type ARDOUR::RegionExportChannelFactory::type
private

Definition at line 115 of file export_channel.h.


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