#include <clock-drivers.h>
Public Member Functions | |
| clock_driver () | |
| virtual void | init () |
| void | shift_metarate (signed4 direction_metarate) |
| virtual void | shift_playrate (signed4 direction_playrate) |
| virtual void | changetempo (signed8 period) |
| virtual void | set_normalperiod_metarate (quad_period_type newnormalperiod_metarate) |
| clock_driver::clock_driver | ( | ) | [inline] |
| void clock_driver::changetempo | ( | signed8 | period | ) | [virtual] |
Change tempo to period
References assert(), diskrate, dsp, dsp_driver::playrate, x_diskrate, and y_playrate.
Referenced by BpmAnalyzerDialog::tap().
| virtual void clock_driver::init | ( | ) | [inline, virtual] |
Initialize the driver by allocating necessary threads and data structures.
Referenced by main(), and InitAndStart::run().
| virtual void clock_driver::set_normalperiod_metarate | ( | quad_period_type | newnormalperiod_metarate | ) | [inline, virtual] |
This function is called by the routines that can detect or modify the native tempo. When overriding this function, you should call the super class Beware: this method does not update the playing file and can be used for instance by the jack clock driver. The global set_normalperiod_metarate on the other hand will update the index file; which might not be wanted.
References diskrate, dsp, dsp_driver::playrate, x_diskrate, and y_playrate.
Referenced by set_normalperiod_metarate().
| void clock_driver::shift_metarate | ( | signed4 | direction_metarate | ) | [inline] |
References metarate_to_playrate(), and shift_playrate().
| virtual void clock_driver::shift_playrate | ( | signed4 | direction_playrate | ) | [inline, virtual] |
References y_playrate.
Referenced by shift_metarate().
1.6.2