Audacity 3.2.0
Public Types | Public Member Functions | Public Attributes | List of all members
SeqBlock Class Reference

Data structure containing pointer to a sample block and a start time. Element of a BlockArray. More...

#include <Sequence.h>

Collaboration diagram for SeqBlock:
[legend]

Public Types

using SampleBlockPtr = std::shared_ptr< SampleBlock >
 

Public Member Functions

 SeqBlock ()
 
 SeqBlock (const SampleBlockPtr &sb_, sampleCount start_)
 
SeqBlock Plus (sampleCount delta) const
 

Public Attributes

SampleBlockPtr sb
 
sampleCount start
 the sample in the global wavetrack that this block starts at. More...
 

Detailed Description

Data structure containing pointer to a sample block and a start time. Element of a BlockArray.

Definition at line 29 of file Sequence.h.

Member Typedef Documentation

◆ SampleBlockPtr

using SeqBlock::SampleBlockPtr = std::shared_ptr<SampleBlock>

Definition at line 31 of file Sequence.h.

Constructor & Destructor Documentation

◆ SeqBlock() [1/2]

SeqBlock::SeqBlock ( )
inline

Definition at line 36 of file Sequence.h.

37 : sb{}, start(0)
38 {}
sampleCount start
the sample in the global wavetrack that this block starts at.
Definition: Sequence.h:34
SampleBlockPtr sb
Definition: Sequence.h:32

Referenced by Plus().

Here is the caller graph for this function:

◆ SeqBlock() [2/2]

SeqBlock::SeqBlock ( const SampleBlockPtr sb_,
sampleCount  start_ 
)
inline

Definition at line 40 of file Sequence.h.

41 : sb(sb_), start(start_)
42 {}

Member Function Documentation

◆ Plus()

SeqBlock SeqBlock::Plus ( sampleCount  delta) const
inline

Definition at line 45 of file Sequence.h.

46 {
47 return SeqBlock(sb, start + delta);
48 }
SeqBlock()
Definition: Sequence.h:36

References sb, SeqBlock(), and start.

Here is the call graph for this function:

Member Data Documentation

◆ sb

SampleBlockPtr SeqBlock::sb

◆ start

sampleCount SeqBlock::start

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