Timeline: Clock cleanup.
This commit is contained in:
parent
62c8490c17
commit
6151e0620f
|
@ -28,7 +28,7 @@ switched between Bar Beat Tick and Wallclock displays */
|
||||||
#include "Timeline.H"
|
#include "Timeline.H"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
const float CLOCK_UPDATE_FREQ = 0.06f;
|
const float CLOCK_UPDATE_FREQ = 0.08f;
|
||||||
|
|
||||||
/* TODO: frames per second? */
|
/* TODO: frames per second? */
|
||||||
|
|
||||||
|
|
|
@ -397,7 +397,7 @@ Timeline::Timeline ( int X, int Y, int W, int H, const char* L ) : BASE( X, Y, W
|
||||||
Loggable::snapshot_callback( &Timeline::snapshot, this );
|
Loggable::snapshot_callback( &Timeline::snapshot, this );
|
||||||
|
|
||||||
osc_thread = 0;
|
osc_thread = 0;
|
||||||
_sample_rate = 0;
|
_sample_rate = 44100;
|
||||||
|
|
||||||
box( FL_FLAT_BOX );
|
box( FL_FLAT_BOX );
|
||||||
xoffset = 0;
|
xoffset = 0;
|
||||||
|
@ -1544,7 +1544,7 @@ Timeline::command_save ( )
|
||||||
bool
|
bool
|
||||||
Timeline::command_new ( const char *name, const char *display_name )
|
Timeline::command_new ( const char *name, const char *display_name )
|
||||||
{
|
{
|
||||||
return Project::create( name, NULL );
|
bool b = Project::create( name, NULL );
|
||||||
|
|
||||||
Project::set_name ( display_name );
|
Project::set_name ( display_name );
|
||||||
|
|
||||||
|
@ -1552,9 +1552,10 @@ Timeline::command_new ( const char *name, const char *display_name )
|
||||||
/* tle->update_menu(); */
|
/* tle->update_menu(); */
|
||||||
|
|
||||||
/* tle->main_window->redraw(); */
|
/* tle->main_window->redraw(); */
|
||||||
|
|
||||||
|
// discover_peers();
|
||||||
|
|
||||||
discover_peers();
|
return b;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
|
|
Loading…
Reference in New Issue