cwIoMidiRecordPlay.h/cpp : Added elapsed_micros().
This commit is contained in:
parent
41bac85d94
commit
a35d91f73e
@ -1599,6 +1599,15 @@ cw::rc_t cw::midi_record_play::seek( handle_t h, time::spec_t seek_timestamp )
|
||||
return rc;
|
||||
}
|
||||
|
||||
unsigned cw::midi_record_play::elapsed_micros( handle_t h )
|
||||
{
|
||||
midi_record_play_t* p = _handleToPtr(h);
|
||||
time::spec_t t;
|
||||
time::get(t);
|
||||
|
||||
return time::elapsedMicros( p->start_time, t );
|
||||
}
|
||||
|
||||
unsigned cw::midi_record_play::event_count( handle_t h )
|
||||
{
|
||||
midi_record_play_t* p = _handleToPtr(h);
|
||||
|
@ -57,6 +57,8 @@ namespace cw
|
||||
|
||||
rc_t seek( handle_t h, time::spec_t timestamp );
|
||||
|
||||
unsigned elapsed_micros( handle_t h );
|
||||
|
||||
unsigned event_count( handle_t h ); // Current count of stored messages.
|
||||
unsigned event_index( handle_t h ); // record mode: index of next event to store play mode:index of next event to play
|
||||
unsigned event_loc( handle_t h ); // play mode: loc of next event to play record mode:kInvalidId
|
||||
|
Loading…
Reference in New Issue
Block a user