This website works better with JavaScript.
Home
Help
Sign In
linuxaudio
/
new-session-manager
mirror of
https://github.com/linuxaudio/new-session-manager
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
17
Wiki
Activity
Browse Source
Allow moving the playhead to the mouse position with 'p' press.
tags/non-daw-v1.1.0
Jonathan Moore Liles
17 years ago
parent
78a3399260
commit
2a7f14870c
3 changed files
with
18 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+11
-0
Timeline/Timeline.C
+6
-0
Timeline/Transport.C
+1
-0
Timeline/Transport.H
+ 11
- 0
Timeline/Timeline.C
View File
@@ -702,6 +702,17 @@ Timeline::handle ( int m )
return 1;
}
case 'p':
{
int X = Fl::event_x() - Track::width();
if ( X > 0 )
{
transport.locate( xoffset + x_to_ts( X ) );
}
return 1;
}
default:
return Fl_Overlay_Window::handle( m );
}
+ 6
- 0
Timeline/Transport.C
View File
@@ -31,3 +31,9 @@ Transport::poll ( void )
rolling = ts == JackTransportRolling;
}
void
Transport::locate ( nframes_t frame )
{
jack_transport_locate( engine->client(), frame );
}
+ 1
- 0
Timeline/Transport.H
View File
@@ -27,6 +27,7 @@ struct Transport : public jack_position_t
bool rolling;
void poll ( void );
void locate ( nframes_t frame );
};
extern Transport transport;
Write
Preview
Loading…
Cancel
Save