4 * Copyright (C) 1997-2014 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include <sys/types.h>
29 #include "condition.inc"
30 #include "mwindow.inc"
31 #include "mwindowgui.inc"
32 #include "playbackengine.inc"
36 class Tracking : public Thread
39 Tracking(MWindow *mwindow);
42 void create_objects();
43 virtual int start_playback(double new_position);
44 virtual int stop_playback();
46 // Called by the tracker to get the current position
47 virtual PlaybackEngine* get_playback_engine();
48 virtual double get_tracking_position();
49 // Update position displayed
50 virtual void update_tracker(double position);
52 virtual void update_meters(int64_t position);
53 virtual void stop_meters();
54 virtual void stop_mixers();
55 // int get_pixel(double position);
57 // Erase cursor if it's visible. Called by start_playback
58 // Draw new cursor at last_position if invisible
62 // Values to return from playback_engine to update_meter .
63 // Use ArrayList to simplify module counting
64 ArrayList<double> module_levels;
67 void show_playback_cursor(int64_t position);
68 // Delay until startup
69 Condition *startup_lock;