![]() |
drumstick 2.10.0
C++ MIDI libraries using Qt objects, idioms, and style.
|
ALSA Timer inquiry helper. More...
#include <alsatimer.h>
Public Member Functions | |
| TimerQuery (const QString &deviceName, int openMode) | |
| Constructor. More... | |
| TimerQuery (const QString &deviceName, int openMode, snd_config_t *conf) | |
| Constructor. More... | |
| virtual | ~TimerQuery () |
| Destructor. | |
| TimerIdList | getTimers () const |
| Gets the list of available timers. More... | |
| TimerGlobalInfo & | getGlobalInfo () |
| Get a TimerGlobalInfo object. More... | |
| void | setGlobalParams (snd_timer_gparams_t *params) |
| Sets the global parameters. More... | |
| void | getGlobalParams (snd_timer_gparams_t *params) |
| Gets the global timer parameters. More... | |
| void | getGlobalStatus (snd_timer_gstatus_t *status) |
| Gets the global timer status. More... | |
Protected Member Functions | |
| void | readTimers () |
| Enumerate the available timers storing the results into an internal list. | |
| void | freeTimers () |
| Release the internal list of timers. | |
This class provides a mechanism to enumerate the available system timers.
Definition at line 170 of file alsatimer.h.
| TimerQuery | ( | const QString & | deviceName, |
| int | openMode | ||
| ) |
Constructor.
| deviceName | Device name, usually "hw" |
| openMode | Open mode (unknown values) |
Definition at line 449 of file alsatimer.cpp.
References DRUMSTICK_ALSA_CHECK_WARNING, and TimerQuery::readTimers().
| TimerQuery | ( | const QString & | deviceName, |
| int | openMode, | ||
| snd_config_t * | conf | ||
| ) |
Constructor.
| deviceName | Device name, usually "hw" |
| openMode | Open mode (unknown values) |
| conf | ALSA configuration object pointer |
Definition at line 463 of file alsatimer.cpp.
References DRUMSTICK_ALSA_CHECK_WARNING, and TimerQuery::readTimers().
| TimerGlobalInfo & getGlobalInfo | ( | ) |
Get a TimerGlobalInfo object.
Definition at line 513 of file alsatimer.cpp.
| void getGlobalParams | ( | snd_timer_gparams_t * | params | ) |
Gets the global timer parameters.
| params | Pointer to an ALSA timer global parameters object |
Definition at line 534 of file alsatimer.cpp.
| void getGlobalStatus | ( | snd_timer_gstatus_t * | status | ) |
Gets the global timer status.
| status | Pointer to an ALSA timer global status object |
Definition at line 544 of file alsatimer.cpp.
|
inline |
Gets the list of available timers.
Definition at line 180 of file alsatimer.h.
| void setGlobalParams | ( | snd_timer_gparams_t * | params | ) |
Sets the global parameters.
| params | Pointer to an ALSA timer global parameters object |
Definition at line 524 of file alsatimer.cpp.