![]() |
drumstick 2.10.0
C++ MIDI libraries using Qt objects, idioms, and style.
|
ALSA Timer information container. More...
#include <alsatimer.h>
Public Member Functions | |
| TimerInfo () | |
| Constructor. | |
| TimerInfo (const TimerInfo &other) | |
| Copy constructor. More... | |
| TimerInfo (const snd_timer_info_t *other) | |
| Cosntructor. More... | |
| virtual | ~TimerInfo () |
| Destructor. | |
| TimerInfo * | clone () |
| Copy the current object. More... | |
| TimerInfo & | operator= (const TimerInfo &other) |
| Assignment operator. More... | |
| int | getSizeOfInfo () const |
| Gets the size of the ALSA timer info object. More... | |
| bool | isSlave () |
| Check if the timer is slave (depends on another device) More... | |
| int | getCard () |
| Gets the card number. More... | |
| QString | getId () |
| Gets the string identifier. More... | |
| QString | getName () |
| Gets the timer name. More... | |
| long | getResolution () |
| Gets the timer resolution (timer period in nanoseconds) More... | |
| long | getFrequency () |
| Gets the timer frequency in Hz. More... | |
Protected Member Functions | |
| Q_DECL_DEPRECATED long | getTicks () |
| Gets the maximum timer ticks. More... | |
ALSA Timer information container.
This class is used to hold properties about ALSA Timers.
Definition at line 63 of file alsatimer.h.
Copy constructor.
| other | Existing TimerInfo object reference |
Definition at line 107 of file alsatimer.cpp.
|
explicit |
Cosntructor.
| other | ALSA timer info object pointer |
Definition at line 97 of file alsatimer.cpp.
| TimerInfo * clone | ( | ) |
Copy the current object.
Definition at line 126 of file alsatimer.cpp.
References TimerInfo::TimerInfo().
| int getCard | ( | ) |
| long getFrequency | ( | ) |
Gets the timer frequency in Hz.
Definition at line 200 of file alsatimer.cpp.
References TimerInfo::getResolution().
| QString getId | ( | ) |
Gets the string identifier.
Definition at line 170 of file alsatimer.cpp.
| QString getName | ( | ) |
Gets the timer name.
Definition at line 180 of file alsatimer.cpp.
| long getResolution | ( | ) |
Gets the timer resolution (timer period in nanoseconds)
Definition at line 190 of file alsatimer.cpp.
Referenced by TimerInfo::getFrequency().
| int getSizeOfInfo | ( | ) | const |
Gets the size of the ALSA timer info object.
Definition at line 215 of file alsatimer.cpp.
|
protected |
Gets the maximum timer ticks.
Definition at line 226 of file alsatimer.cpp.
| bool isSlave | ( | ) |
Check if the timer is slave (depends on another device)
Definition at line 150 of file alsatimer.cpp.
Assignment operator.
| other | Existing TimerInfo object reference |
Definition at line 137 of file alsatimer.cpp.