drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
TimerStatus Class Reference

ALSA Timer status container. More...

#include <alsatimer.h>

Public Member Functions

 TimerStatus ()
 Default constructor.
 
 TimerStatus (const TimerStatus &other)
 Copy constructor. More...
 
 TimerStatus (const snd_timer_status_t *other)
 Constructor. More...
 
virtual ~TimerStatus ()
 Destructor.
 
TimerStatusclone ()
 Copy the current object. More...
 
TimerStatusoperator= (const TimerStatus &other)
 Assignment operator. More...
 
int getSizeOfInfo () const
 Gets the size of the ALSA timer status object. More...
 
snd_htimestamp_t getTimestamp ()
 Gets the high resolution time-stamp. More...
 
long getResolution ()
 Gets the resolution in us. More...
 
long getLost ()
 Gets the master tick lost count. More...
 
long getOverrun ()
 Gets the overrun count. More...
 
long getQueue ()
 Gets the count of used queue elements. More...
 

Detailed Description

ALSA Timer status container.

This class provides some status information about a Timer.

Definition at line 236 of file alsatimer.h.

Constructor & Destructor Documentation

◆ TimerStatus() [1/2]

TimerStatus ( const TimerStatus other)

Copy constructor.

Parameters
otherExisting TimerStatus object reference

Definition at line 933 of file alsatimer.cpp.

◆ TimerStatus() [2/2]

TimerStatus ( const snd_timer_status_t *  other)
explicit

Constructor.

Parameters
otherPointer to an existing ALSA timer status object

Definition at line 923 of file alsatimer.cpp.

Member Function Documentation

◆ clone()

TimerStatus * clone ( )

Copy the current object.

Returns
Pointer to the new object

Definition at line 952 of file alsatimer.cpp.

References TimerStatus::TimerStatus().

◆ getLost()

long getLost ( )

Gets the master tick lost count.

Returns
Master tick lost count

Definition at line 996 of file alsatimer.cpp.

◆ getOverrun()

long getOverrun ( )

Gets the overrun count.

Returns
Overrun count

Definition at line 1006 of file alsatimer.cpp.

◆ getQueue()

long getQueue ( )

Gets the count of used queue elements.

Returns
Count of used queue elements

Definition at line 1016 of file alsatimer.cpp.

◆ getResolution()

long getResolution ( )

Gets the resolution in us.

Returns
Resolution in us

Definition at line 986 of file alsatimer.cpp.

◆ getSizeOfInfo()

int getSizeOfInfo ( ) const

Gets the size of the ALSA timer status object.

Returns
Size of the ALSA object

Definition at line 1026 of file alsatimer.cpp.

◆ getTimestamp()

snd_htimestamp_t getTimestamp ( )

Gets the high resolution time-stamp.

Returns
High resolution time-stamp

Definition at line 976 of file alsatimer.cpp.

Referenced by Timer::startEvents().

◆ operator=()

TimerStatus & operator= ( const TimerStatus other)

Assignment operator.

Parameters
otherExisting TimerStatus object reference
Returns
This object

Definition at line 963 of file alsatimer.cpp.


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