MuseScore  3.4
Music composition and notation
Public Member Functions | Private Attributes | List of all members
Sample Class Reference

#include <sample.h>

Public Member Functions

 Sample (int ch, short *val, int f, int sr)
 
 ~Sample ()
 
bool read (const QString &)
 
long long frames () const
 
short * data () const
 
int channel () const
 
int sampleRate () const
 
void setLoopStart (int v)
 
void setLoopEnd (int v)
 
void setLoopMode (int v)
 
long long loopStart ()
 
long long loopEnd ()
 
int loopMode ()
 

Private Attributes

int _channel
 
short * _data
 
long long _frames
 
int _sampleRate
 
long long _loopStart
 
long long _loopEnd
 
int _loopMode
 

Constructor & Destructor Documentation

◆ Sample()

Sample::Sample ( int  ch,
short *  val,
int  f,
int  sr 
)
inline

◆ ~Sample()

Sample::~Sample ( )

Member Function Documentation

◆ channel()

int Sample::channel ( ) const
inline

◆ data()

short* Sample::data ( ) const
inline

◆ frames()

long long Sample::frames ( ) const
inline

◆ loopEnd()

long long Sample::loopEnd ( )
inline

◆ loopMode()

int Sample::loopMode ( )
inline

◆ loopStart()

long long Sample::loopStart ( )
inline

◆ read()

bool Sample::read ( const QString &  )

◆ sampleRate()

int Sample::sampleRate ( ) const
inline

◆ setLoopEnd()

void Sample::setLoopEnd ( int  v)
inline

◆ setLoopMode()

void Sample::setLoopMode ( int  v)
inline

◆ setLoopStart()

void Sample::setLoopStart ( int  v)
inline

Member Data Documentation

◆ _channel

int Sample::_channel
private

◆ _data

short* Sample::_data
private

◆ _frames

long long Sample::_frames
private

◆ _loopEnd

long long Sample::_loopEnd
private

◆ _loopMode

int Sample::_loopMode
private

◆ _loopStart

long long Sample::_loopStart
private

◆ _sampleRate

int Sample::_sampleRate
private

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