2 * Copyright (C) 2006 Paul Davis
3 * Copyright (C) 2007 Michael Taht
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #define __STDC_FORMAT_MACROS
31 #if HAVE_TRANZPORT_KERNEL_DRIVER
36 #include "pbd/pthread_utils.h"
38 #include "ardour/route.h"
39 #include "ardour/audio_track.h"
40 #include "ardour/tempo.h"
41 #include "ardour/location.h"
42 #include "ardour/dB.h"
44 #include "tranzport_control_protocol.h"
46 using namespace ARDOUR;
53 #include <pbd/abstract_ui.cc>
56 TranzportControlProtocol::next_wheel_shift_mode ()
58 switch (wheel_shift_mode) {
60 wheel_shift_mode = WheelShiftPan;
63 wheel_shift_mode = WheelShiftMaster;
65 case WheelShiftMaster:
66 wheel_shift_mode = WheelShiftGain;
68 case WheelShiftMarker: // Not done yet, disabled
69 wheel_shift_mode = WheelShiftGain;
77 TranzportControlProtocol::next_wheel_mode ()
81 wheel_mode = WheelScrub;
84 wheel_mode = WheelShuttle;
87 wheel_mode = WheelTimeline;
94 TranzportControlProtocol::show_wheel_mode ()
98 // if(session->transport_speed() != 0) {
99 // if session-transport_speed() < 1.0) show_big_bar/beat
100 // if ? greater. dont
102 if(session->transport_speed() != 0) {
106 switch (wheel_mode) {
118 switch (wheel_shift_mode) {
127 case WheelShiftMaster:
131 case WheelShiftMarker:
136 print (1, 0, text.c_str());