1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-08 15:52:53 +02:00

3535 Commits

Author SHA1 Message Date
Paul Licameli
e1f4ab6af6 Double-click record with overdub pins record head center not right 2016-05-17 13:21:39 -04:00
Paul Licameli
47efa2dbbc fix gcc build 2016-05-17 12:38:30 -04:00
Paul Licameli
c66262d790 Double click on Record button pins record head right, not center 2016-05-17 12:25:39 -04:00
Paul Licameli
c01e5dc6b8 Add a comment, pertinent to scrolling 2016-05-17 12:18:40 -04:00
Paul Licameli
95ccc417d8 Scrolling display for (append-) record, if you double click 2016-05-17 01:47:52 -04:00
Paul Licameli
acf16977be Fix deadlocks in scrubbing, again, and better... 2016-05-16 23:13:27 -04:00
Paul Licameli
9535dce82c Fix deadlocks in scrubbing, again, and better...
see eac6f98cbf97d9cdb240da978581ce21ec0d6f9c
2016-05-16 21:03:04 -04:00
Benjamin Drung
787f2afd10 Introduce end-of-line normalization
Ensures that all files that Git considers to be text will have
normalized (LF) line endings in the repository. When core.eol is set to
native (which is the default), Git will convert the line endings of
normalized files in your working directory back to your platform's
native line ending.

See also https://git-scm.com/docs/gitattributes
2016-05-17 01:05:05 +02:00
Paul Licameli
eac6f98cbf Avoid deadlocks that sometimes happened when starting a scrub...
... as a consequence of commit 52910f4f07d41904e5f8cc5fdc5e7f8484468a00
2016-05-16 18:20:43 -04:00
Steve Daulton
f1909cb88e Improve clarity of Append Record button icon (bug 1365) 2016-05-16 17:24:53 +01:00
Benjamin Drung
a20d7898f3 Fix redeclaration of isinf()
Commit 9e78a41 declared isinf() as std::isinf(), because isinf() was not
declared on Ubuntu 16.04. But now the builds fail on Ubuntu <= 15.10,
because isinf() is declared there:

effects/Contrast.cpp:61:12: error: ‘constexpr bool std::isinf(double)’ conflicts with a previous declaration
 using std::isinf;
            ^
In file included from /usr/include/features.h:364:0,
                 from /usr/include/assert.h:35,
                 from /usr/include/wx-3.0/wx/debug.h:14,
                 from /usr/include/wx-3.0/wx/defs.h:695,
                 from /usr/include/wx-3.0/wx/event.h:14,
                 from /usr/include/wx-3.0/wx/window.h:18,
                 from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
                 from /usr/include/wx-3.0/wx/toplevel.h:20,
                 from /usr/include/wx-3.0/wx/dialog.h:14,
                 from effects/Contrast.h:12,
                 from effects/Contrast.cpp:13:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:201:1: note: previous declaration ‘int isinf(double)’
 __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));

Thus use std::isinf() directly instead of declaring isinf() as
std::isinf().
2016-05-16 13:33:22 +02:00
Paul Licameli
0602343a2d Make drag scrub less sluggish (do less redrawing) 2016-05-15 16:41:24 -04:00
Paul Licameli
c3246e3f7b Make scrubbing work when timer interval constant is shortened to 1 ms
* scrubbing:
  Allow scrub timer interval to be 1 ms, without bogus out-of-memory warnings.
  Less scrub lag: avoid redundant disk traffic in Mixer...
  Less scrub lag: don't poll for available data, get woken up directly
2016-05-15 16:18:43 -04:00
Paul Licameli
8247e87dbf Allow scrub timer interval to be 1 ms, without bogus out-of-memory warnings. 2016-05-15 16:18:00 -04:00
Paul-Licameli
6eaff838f2 Less scrub lag: avoid redundant disk traffic in Mixer...
Also improves performance in bug 860, but not as much as the special case
patch for that bug in Bugzilla
2016-05-15 16:18:00 -04:00
Paul Licameli
52910f4f07 Less scrub lag: don't poll for available data, get woken up directly 2016-05-15 16:18:00 -04:00
Benjamin Drung
9e78a41faf Use std::isinf() instead of isinf()
Audacity fails to build on Ubuntu 16.04 with g++ 5.3.1 (using C++11),
because isinf() is not defined. Thus use std::isinf() instead.
2016-05-15 09:04:35 +02:00
Paul Licameli
3792d18f2d Correct "scrub delay" for whatever scrub timer, so that the lag is right 2016-05-14 19:57:06 -04:00
David Bailes
c58d130c18 Bug fix for audio position
Fix for this bug: If the cursor/selection start is moved using the keyboard, then
audio position shows the previous cursor/selection start.

Simple fix in void AudacityProject::TP_DisplaySelection(). The play region is now updated
before its start is used for audio position.
2016-05-14 17:22:28 +01:00
David Bailes
76a53c43b2 Fix bug associated with the Cursor short/long jump left/right commands
Fixes the following bug: if the zoom level is such that the jump does not cause a visible
change in display of the tracks, then the selection in the selection bar, and the play
region are not updated.

The fix simply moves the location of the call to TP_DisplaySelection(), so that it is called
irrespective of whether the tracks are redrawn.
2016-05-14 15:53:11 +01:00
Paul Licameli
16d33c6005 Give the scrubber its own timer separate from TrackPanel's, so that...
... we can experiment with changing the interval.
2016-05-14 05:47:32 -04:00
Benjamin Drung
13630dc91d Use portable wxIsNaN() instead of isnan()
isnan() is not defined when compiling with g++ 5.3.1 on Ubuntu 16.04. It
is called std::isnan() in C++11 instead. Therefore use wxIsNaN() instead
which already defines the correct name.
2016-05-14 00:05:22 +02:00
Gale Andrews
5c9469a5e2 Added access key for "Scroll left of zero" 2016-05-13 02:00:07 +01:00
Paul Licameli
05fcf9cf82 Fix crashes (sometimes) when closing a project, due to overlays 2016-05-12 16:46:04 -04:00
Paul Licameli
fe11474219 Revert "Fix crashes (sometimes) when closing a project, due to overlays"
This reverts commit a33ca3ec3d1b129241745e278735415a1070e939.
2016-05-12 16:45:08 -04:00
Paul Licameli
31557defa7 Correct the focusing of buttons as mouse moves. Unify the context menu code. 2016-05-12 15:06:54 -04:00
Paul Licameli
a33ca3ec3d Fix crashes (sometimes) when closing a project, due to overlays 2016-05-12 15:04:48 -04:00
Paul Licameli
1bff08a75a Make drag-scrub seek, rather than playing at more than unit speed 2016-05-12 01:22:07 -04:00
Paul Licameli
6ab33f8fe5 Revert another piece of the navigation to ruler by arrow keys 2016-05-11 22:54:55 -04:00
Paul Licameli
737e24e24e Allow pausing and unpausing of scrub. Just treat it differently internally. 2016-05-11 19:59:11 -04:00
Paul Licameli
9055681f11 Right click on the scrub handle pops up the menu, during scrubbing too 2016-05-11 18:58:37 -04:00
Paul Licameli
03ec020085 Revert "Help for debugging of some event handling"
This reverts commit 9bfd66b06ca908efe9bd3adfd7f78cf143d18688.
2016-05-11 13:46:32 -04:00
Paul Licameli
9bfd66b06c Help for debugging of some event handling 2016-05-11 13:25:00 -04:00
Steve Daulton
2cd3a5d751 Display Audio Position when stopped
When play is stopped, display the start of play region as the 'Audio Position' in Selection Toolbar.
2016-05-11 17:46:39 +01:00
Paul Licameli
928e96c6cc Fix assertion violations about double capture; while still making sure...
... that if you drag-scrub and ESC, you don't get a leftover white guide line.
2016-05-10 15:35:46 -04:00
Paul Licameli
80e19f2130 Ruler is in the ctrl+f6 cycle instead of reachable by arrows; experimental...
... flag for turning off navigability of the ruler.
2016-05-10 15:16:12 -04:00
Steve Daulton
7d7865c1a6 Update generated autotool files 2016-05-10 18:29:28 +01:00
Paul Licameli
4394ad1b70 Add a check item to Tracks menu for the scrolling beyond zero preference 2016-05-10 12:47:34 -04:00
Paul Licameli
9f8e34ad0f Implement drag-scrub, compatibly with the existing move-scrub...
Also fix scroll-scrub and remove obsolete mouse preferences messages
2016-05-10 09:40:06 -04:00
Paul Licameli
19ef2f6681 Implement drag-scrub, compatibly with the existing move-scrub...
... Start scrub by click or double click on the scrub head; release button or
not; then move.

If you release before moving, you get scrubbing as before, controlled by
motion.  Click or drag to switch in and out of seeking.  Stop with ESC,
spacebar, etc.  No change of selection.

But now if you drag, then scrubbing contines until you release the mouse or
otherwise stop with a key.

If by release of the mouse, then the selection changes as if by a click at
the last play position.  If you hold shift, then, as if by shift-click.

If drag begins with a double-click, then the play head remains centered and
the track moves.
2016-05-10 09:37:10 -04:00
Paul Licameli
5944391e24 Let's commit to EXPERIMENTAL_SCRUBBING_SMOOTH_SCROLL 2016-05-09 23:21:56 -04:00
Paul Licameli
a3b7305386 Remove obsolete instructions in Mouse Preferences for scrubbing 2016-05-09 23:16:07 -04:00
Paul Licameli
cc0190054c Fix regression in scroll scrub 2016-05-09 21:53:32 -04:00
Paul Licameli
1135ca5a3a Revert "Accessibility for time ruler"
This reverts commit 5b2b6df9361205e38ad8daf5ba9ad477709a8641.
2016-05-09 19:41:02 -04:00
Paul Licameli
34d0a52011 Better updating of the white guideline for scrub, and hiding it when scrub stops 2016-05-09 19:35:23 -04:00
Paul Licameli
e8a244343e Merge branch 'master' into scrubbing2 2016-05-09 17:49:29 -04:00
Paul Licameli
9ad9ea2ec3 Fix the flashing problems on Mac involving the quick play line...
... The main rule seems to be, during the repainting of one window, don't draw
onto any other DC for that or any other window.  Don't refresh any other window.
2016-05-09 17:19:56 -04:00
Paul Licameli
f9dd6b4066 Reimplement the play/record indicator in the ruler as an overlay...
... fixing the lag between the green line and the triangle for scrolling play
2016-05-09 15:58:51 -04:00
Paul Licameli
d8e42b0af4 Reimplement the cursor mark in the ruler as an overlay 2016-05-09 15:28:33 -04:00
Paul Licameli
3466e91ed1 Insert calls to DrawOverlays() on the ruler, though they do nothing yet 2016-05-09 11:37:32 -04:00