hydrogen 1.1.1
Sample::Loops Class Reference

set of loop configuration flags More...

#include <Sample.h>

Public Types

enum  LoopMode { FORWARD =0 , REVERSE , PINGPONG }
 possible sample editing loop mode More...
 

Public Member Functions

 Loops ()
 constructor More...
 
 Loops (const Loops *other)
 copy constructor More...
 
bool operator== (const Loops &b) const
 equal to operator More...
 
QString toQString (const QString &sPrefix, bool bShort) const
 

Data Fields

int start_frame
 the frame index where to start the new sample from More...
 
int loop_frame
 the frame index where to start the loop from More...
 
int end_frame
 the frame index where to end the new sample to More...
 
int count
 the counts of loops to apply More...
 
LoopMode mode
 one of the possible loop modes More...
 

Detailed Description

set of loop configuration flags

Member Enumeration Documentation

◆ LoopMode

enum LoopMode

possible sample editing loop mode

Enumerator
FORWARD 
REVERSE 
PINGPONG 

Constructor & Destructor Documentation

◆ Loops() [1/2]

Loops ( )
inline

constructor

◆ Loops() [2/2]

Loops ( const Loops other)
inline

copy constructor

Member Function Documentation

◆ operator==()

bool operator== ( const Loops b) const
inline

equal to operator

◆ toQString()

QString toQString ( const QString &  sPrefix,
bool  bShort 
) const

Field Documentation

◆ count

int count

the counts of loops to apply

◆ end_frame

int end_frame

the frame index where to end the new sample to

◆ loop_frame

int loop_frame

the frame index where to start the loop from

◆ mode

LoopMode mode

one of the possible loop modes

◆ start_frame

int start_frame

the frame index where to start the new sample from