21 #include <cppunit/TestFixture.h>
22 #include <cppunit/extensions/HelperMacros.h>
30 #define FRAME_RATE 44100
43 transport_speed (1.0),
45 _frame_time (1000000),
51 _tempo_map->
add_tempo (tempo, Timecode::BBT_Time(1, 1, 0));
52 _tempo_map->
add_meter (meter, Timecode::BBT_Time(1, 1, 0));
59 _transport_frame += double(_period_size) * double(transport_speed);
72 _transport_frame = frame;
framepos_t frame_time() const
void add_tempo(const Tempo &, Timecode::BBT_Time where)
framecnt_t period_size() const
We need this wrapper for testability, it's just too hard to mock up a session class.
void request_transport_speed(const double speed)
CPPUNIT_TEST_SUITE(MIDIClock_SlaveTest)
LIBARDOUR_API uint64_t TempoMap
void set_period_size(framecnt_t a_size)
TempoMap & tempo_map() const
void request_locate(framepos_t frame, bool with_roll=false)
void add_meter(const Meter &, Timecode::BBT_Time where)
framepos_t transport_frame() const
CPPUNIT_TEST(testStepResponse)
pframes_t frames_since_cycle_start() const
framepos_t _transport_frame
framecnt_t frame_rate() const
framepos_t audible_frame() const