Normalized unit synchronization observer. More...
#include <Sync.h>
Public Member Functions | |
double | spu () const |
Returns local samples/unit. | |
double | ups () const |
Returns local units/sample. | |
virtual void | onResync (double ratioSPU) |
Notification that subject's samples/unit has changed. | |
void | spu (double val) |
Set local samples/unit. | |
void | ups (double val) |
Set local units/sample. |
Normalized unit synchronization observer.
virtual void onResync | ( | double | ratioSPU | ) | [virtual] |
Notification that subject's samples/unit has changed.
Any instance state that depends on the samples/unit ratio should be updated here. The ratio of the new to the old samples/unit is passed in.