Ardour  9.0-pre0-582-g084a23a80d
PBD::MMTIMERS Namespace Reference

Functions

bool get_min_resolution (uint32_t &timer_resolution_ms)
 
bool set_min_resolution ()
 
bool set_resolution (uint32_t timer_resolution_ms)
 
bool reset_resolution ()
 

Function Documentation

◆ get_min_resolution()

bool PBD::MMTIMERS::get_min_resolution ( uint32_t &  timer_resolution_ms)

Get the minimum Multimedia Timer resolution as supported by the system

Returns
true if getting min timer resolution was not successful

◆ reset_resolution()

bool PBD::MMTIMERS::reset_resolution ( )

Reset Multimedia Timer resolution. In my testing, if the timer resolution is set below the default, then resetting the resolution will not reset the timer resolution back to 15ms. At least it does not reset immediately even after calling Sleep.

Returns
true if setting the timer value was successful

◆ set_min_resolution()

bool PBD::MMTIMERS::set_min_resolution ( )

Set the minimum Multimedia Timer resolution as supported by the system

Returns
true if setting min timer resolution was successful

◆ set_resolution()

bool PBD::MMTIMERS::set_resolution ( uint32_t  timer_resolution_ms)

Set current Multimedia Timer resolution. If the timer resolution has already been set then reset_resolution() must be called before set_resolution will succeed.

Returns
true if setting the timer value was successful, false if setting the timer resolution failed or the resolution has already been set.