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

#include <dummy_audiobackend.h>

Inheritance diagram for ARDOUR::DummyAudioPort:
[legend]

Public Types

enum  GeneratorType {
  Silence , DC05 , Demolition , UniformWhiteNoise ,
  GaussianWhiteNoise , PinkNoise , PonyNoise , SineWave ,
  SineWaveOctaves , SquareWave , KronekerDelta , SineSweep ,
  SineSweepSwell , SquareSweep , SquareSweepSwell , OneHz ,
  LTC , Loopback
}
 

Public Member Functions

 DummyAudioPort (DummyAudioBackend &b, const std::string &, PortFlags)
 
 ~DummyAudioPort ()
 
DataType type () const
 
Samplebuffer ()
 
const Sampleconst_buffer () const
 
void * get_buffer (pframes_t nframes)
 
std::string setup_generator (GeneratorType const, float const, int, int)
 
void fill_wavetable (const float *d, size_t n_samples)
 
void midi_to_wavetable (DummyMidiBuffer const *const src, size_t n_samples)
 
- Public Member Functions inherited from ARDOUR::DummyPort
virtual ~DummyPort ()
 
void next_period ()
 
- Public Member Functions inherited from ARDOUR::BackendPort
virtual ~BackendPort ()
 
const std::string & name () const
 
const std::string & pretty_name () const
 
const std::string & hw_port_name () const
 
int set_name (const std::string &name)
 
int set_pretty_name (const std::string &name)
 
int set_hw_port_name (const std::string &name)
 
PortFlags flags () const
 
bool is_input () const
 
bool is_output () const
 
bool is_physical () const
 
bool is_terminal () const
 
bool is_connected () const
 
bool is_connected (BackendPortHandle port) const
 
bool is_physically_connected () const
 
const std::set< BackendPortPtr > & get_connections () const
 
int connect (BackendPortHandle port, BackendPortHandle self)
 
int disconnect (BackendPortHandle port, BackendPortHandle self)
 
void disconnect_all (BackendPortHandle self)
 
const LatencyRange latency_range (bool for_playback) const
 
void set_latency_range (const LatencyRange &latency_range, bool for_playback)
 
void update_connected_latency (bool for_playback)
 
- Public Member Functions inherited from ARDOUR::ProtoPort
 ProtoPort ()
 
virtual ~ProtoPort ()
 

Private Member Functions

void generate (const pframes_t n_samples)
 
float grandf ()
 

Private Attributes

Sample _buffer [8192]
 
GeneratorType _gen_type
 
float _b0
 
float _b1
 
float _b2
 
float _b3
 
float _b4
 
float _b5
 
float _b6
 
Sample_wavetable
 
uint32_t _gen_period
 
uint32_t _gen_offset
 
uint32_t _gen_perio2
 
uint32_t _gen_count2
 
bool _pass
 
float _rn1
 
LTCEncoder_ltc
 
PBD::RingBuffer< Sample > * _ltcbuf
 
float _ltc_spd
 
float _ltc_rand
 

Additional Inherited Members

- Protected Member Functions inherited from ARDOUR::DummyPort
 DummyPort (DummyAudioBackend &b, const std::string &, PortFlags)
 
void setup_random_number_generator ()
 
float randf ()
 
uint32_t randi ()
 
pframes_t pulse_position () const
 
- Protected Member Functions inherited from ARDOUR::BackendPort
 BackendPort (PortEngineSharedImpl &b, const std::string &, PortFlags)
 
- Protected Attributes inherited from ARDOUR::DummyPort
uint32_t _rseed
 
volatile bool _gen_cycle
 
Glib::Threads::Mutex generator_lock
 
- Protected Attributes inherited from ARDOUR::BackendPort
PortEngineSharedImpl_backend
 

Detailed Description

Definition at line 96 of file dummy_audiobackend.h.

Member Enumeration Documentation

◆ GeneratorType

Enumerator
Silence 
DC05 
Demolition 
UniformWhiteNoise 
GaussianWhiteNoise 
PinkNoise 
PonyNoise 
SineWave 
SineWaveOctaves 
SquareWave 
KronekerDelta 
SineSweep 
SineSweepSwell 
SquareSweep 
SquareSweepSwell 
OneHz 
LTC 
Loopback 

Definition at line 107 of file dummy_audiobackend.h.

Constructor & Destructor Documentation

◆ DummyAudioPort()

ARDOUR::DummyAudioPort::DummyAudioPort ( DummyAudioBackend b,
const std::string &  ,
PortFlags   
)

◆ ~DummyAudioPort()

ARDOUR::DummyAudioPort::~DummyAudioPort ( )

Member Function Documentation

◆ buffer()

Sample* ARDOUR::DummyAudioPort::buffer ( )
inline

Definition at line 103 of file dummy_audiobackend.h.

◆ const_buffer()

const Sample* ARDOUR::DummyAudioPort::const_buffer ( ) const
inline

Definition at line 104 of file dummy_audiobackend.h.

◆ fill_wavetable()

void ARDOUR::DummyAudioPort::fill_wavetable ( const float *  d,
size_t  n_samples 
)
inline

Definition at line 128 of file dummy_audiobackend.h.

◆ generate()

void ARDOUR::DummyAudioPort::generate ( const pframes_t  n_samples)
private

◆ get_buffer()

void* ARDOUR::DummyAudioPort::get_buffer ( pframes_t  nframes)
virtual

Implements ARDOUR::BackendPort.

◆ grandf()

float ARDOUR::DummyAudioPort::grandf ( )
private

◆ midi_to_wavetable()

void ARDOUR::DummyAudioPort::midi_to_wavetable ( DummyMidiBuffer const *const  src,
size_t  n_samples 
)

◆ setup_generator()

std::string ARDOUR::DummyAudioPort::setup_generator ( GeneratorType const  ,
float const  ,
int  ,
int   
)

◆ type()

DataType ARDOUR::DummyAudioPort::type ( ) const
inlinevirtual

Implements ARDOUR::BackendPort.

Definition at line 101 of file dummy_audiobackend.h.

Member Data Documentation

◆ _b0

float ARDOUR::DummyAudioPort::_b0
private

Definition at line 140 of file dummy_audiobackend.h.

◆ _b1

float ARDOUR::DummyAudioPort::_b1
private

Definition at line 140 of file dummy_audiobackend.h.

◆ _b2

float ARDOUR::DummyAudioPort::_b2
private

Definition at line 140 of file dummy_audiobackend.h.

◆ _b3

float ARDOUR::DummyAudioPort::_b3
private

Definition at line 140 of file dummy_audiobackend.h.

◆ _b4

float ARDOUR::DummyAudioPort::_b4
private

Definition at line 140 of file dummy_audiobackend.h.

◆ _b5

float ARDOUR::DummyAudioPort::_b5
private

Definition at line 140 of file dummy_audiobackend.h.

◆ _b6

float ARDOUR::DummyAudioPort::_b6
private

Definition at line 140 of file dummy_audiobackend.h.

◆ _buffer

Sample ARDOUR::DummyAudioPort::_buffer[8192]
private

Definition at line 132 of file dummy_audiobackend.h.

◆ _gen_count2

uint32_t ARDOUR::DummyAudioPort::_gen_count2
private

Definition at line 146 of file dummy_audiobackend.h.

◆ _gen_offset

uint32_t ARDOUR::DummyAudioPort::_gen_offset
private

Definition at line 144 of file dummy_audiobackend.h.

◆ _gen_perio2

uint32_t ARDOUR::DummyAudioPort::_gen_perio2
private

Definition at line 145 of file dummy_audiobackend.h.

◆ _gen_period

uint32_t ARDOUR::DummyAudioPort::_gen_period
private

Definition at line 143 of file dummy_audiobackend.h.

◆ _gen_type

GeneratorType ARDOUR::DummyAudioPort::_gen_type
private

Definition at line 136 of file dummy_audiobackend.h.

◆ _ltc

LTCEncoder* ARDOUR::DummyAudioPort::_ltc
private

Definition at line 153 of file dummy_audiobackend.h.

◆ _ltc_rand

float ARDOUR::DummyAudioPort::_ltc_rand
private

Definition at line 156 of file dummy_audiobackend.h.

◆ _ltc_spd

float ARDOUR::DummyAudioPort::_ltc_spd
private

Definition at line 155 of file dummy_audiobackend.h.

◆ _ltcbuf

PBD::RingBuffer<Sample>* ARDOUR::DummyAudioPort::_ltcbuf
private

Definition at line 154 of file dummy_audiobackend.h.

◆ _pass

bool ARDOUR::DummyAudioPort::_pass
private

Definition at line 150 of file dummy_audiobackend.h.

◆ _rn1

float ARDOUR::DummyAudioPort::_rn1
private

Definition at line 151 of file dummy_audiobackend.h.

◆ _wavetable

Sample* ARDOUR::DummyAudioPort::_wavetable
private

Definition at line 142 of file dummy_audiobackend.h.


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