1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00
Commit Graph

910 Commits

Author SHA1 Message Date
James Crook
fefc856901 Update slider in tracks on theme change. 2017-04-05 20:16:12 +01:00
James Crook
419b790235 Make monitoring work after a theme change 2017-04-05 17:29:24 +01:00
James Crook
fa62d80a21 Add numbers on ruler back (if not DA) 2017-04-04 23:51:00 +01:00
James Crook
028ed19d90 Sync with DarkAudacity 2017-04-02 23:07:13 +01:00
Paul Licameli
b2ab9b5087 Simplify MixerBoard.cpp using the PlayableTrack type 2017-03-29 13:42:51 -04:00
James Crook
78149bc3da Disable command-list capture code, by default.
Also added a comment to say what it is.
2017-03-23 18:48:00 +00:00
James Crook
3ffcc29bf6 Add code to capture command List
Capture the commands and key bindings to debug channel:
a) From the menus
b) from the preferences.
2017-03-23 18:42:54 +00:00
Paul Licameli
2cbdd1cc43 Exception safety in: ControlToolBar & Ruler functions...
... because SetupCutPreviewTracks has a small chance of throwing for want
of disk space.

StopStream however is considered nonthrowing.
2017-03-21 14:11:23 -04:00
Paul Licameli
006aeda0a9 Use SafelyProcessEvent 2017-03-17 17:53:03 -04:00
Paul Licameli
1126925438 Remove naked malloc (or similar) and free in: various 2017-03-17 17:52:54 -04:00
Paul Licameli
0113e6f44f Remove naked new[] in: ondemand, toolbars, widgets 2017-03-17 17:52:45 -04:00
Paul Licameli
38236a807c More new -> NEW, delete -> DELETE in comments 2017-03-17 17:52:41 -04:00
Paul Licameli
d831318132 simplify SpectrogramSettings::GetScale; abstract frequency-to-bin...
... this is a preparation for the constant-q feature, if we want it.
2017-03-17 17:52:27 -04:00
Paul Licameli
aa0d55ac83 Use enum class ProgressResult, don't interconvert with int or bool 2017-03-17 17:52:24 -04:00
Paul Licameli
5036583549 Fewer inclusions of AudacityApp.h 2017-03-17 17:52:24 -04:00
Darrell Walisser
d1b49952e9 Two Initialisations (Valgrind) 2017-03-01 22:39:27 +00:00
James Crook
bf7799e90c Bug 1412 - (partial workaround for) modeless real/empty "Help on the Internet" pair. 2017-02-26 09:44:23 +00:00
Steve Daulton
d9f7b3605f Bug 1576 - Assert when New Length is zero in Change Speed effect 2017-02-24 18:51:39 +00:00
Steve Daulton
15aa84f10b Fix bug 1575
Includes fix by PRL:
https://github.com/Paul-Licameli/audacity/commit/cbca44e
2017-01-16 12:35:07 +00:00
Paul Licameli
6fad643000 guard against dereferencing null in the previous 2016-11-21 12:55:21 -05:00
David Bailes
3cecbcd44e Bug 1450 - Mac: Text grid cells cannot be TAB'bed out of
Thanks to David for the fix.
2016-11-21 17:36:27 +00:00
David Bailes
f296c768d5 Fix for bug 1542 - setting of radio buttons in Selection bar
Problem: On Windows, if you set the "length" radio button in the selection bar, then tab round to it, this sets the "end" radio button.

This was caused by commit 7e49dc4.
The fix is to restore the previous code just for Windows.
2016-11-03 13:59:04 +00:00
Steve Daulton
e239efe486 Fix bug 1531 2016-10-23 22:10:38 +01:00
Paul Licameli
412d651e6e Bug1511, partial: fix crash using Quit from Mac tool dock, but...
... when multiple unsaved projects are open, there is still a prompt to save
only one of them.  I don't yet know why.
2016-10-03 11:34:30 -04:00
Paul Licameli
09cf0a6be3 Bug1450: fix TAB key navigation in metadata dialog 2016-09-27 06:19:09 -04:00
Paul Licameli
f993f1eadf Regularize casts as (int), so they are easier to find and review 2016-09-20 08:42:11 -04:00
Mark Young
655d7596ab Assign mMessage to the first column wxStaticText control to allow non-TimerRecord usages to work correctly. 2016-09-18 22:15:54 +01:00
Paul Licameli
236a271ef5 Avoid dangling else warning 2016-09-18 10:36:55 -04:00
Paul Licameli
5d5edecca5 Remove unnecessary semicolons 2016-09-18 10:36:53 -04:00
Paul Licameli
ad04187a41 Change sampleCount arguments, variables, return values to size_t...
... whenever they really describe the size of a buffer that fits in memory, or
of a block file (which is never now more than a megabyte and so could be fit in
memory all at once), or a part thereof.
2016-09-15 21:03:17 -04:00
Paul Licameli
78be459fa1 Convert sampleCount <-> floating or -> long long explicitly ...
... A non-narrowing conversion out to long long is a necessity, but the
conversions to float and double are simply conveniences.

Conversion from floating is explicit, to avoid unintended consequences with
arithmetic operators, when later sampleCount ceases to be an alias for an
integral type.

Some conversions are not made explicit, where I expect to change the type of
the variable later to have mere size_t width.
2016-09-15 21:02:31 -04:00
Paul Licameli
d783762737 Remove unnecessary std::move in return statements...
... and comment where it is necessary.
2016-09-15 07:39:46 -04:00
Steve Daulton
740ec8b72b Remove redudant comment
Residual from previous commit
2016-09-13 00:48:44 +01:00
tip2tail
56b1f2d2cb Bug 1403 - Message can now be displayed in multiple columns
Uses 'End-of-Transmission-Block' character to mark the column split(s)
and is defined as a static constant for ease of use.
2016-09-12 19:30:10 +01:00
James Crook
4eeef25191 More unused parameters and local variables. 2016-09-12 12:33:44 +01:00
James Crook
e39cdce0fc Merge remote-tracking branch 'walisser/upstream' 2016-09-12 12:22:36 +01:00
James Crook
65c7e8051a ThomasFeher - Unused parameters clean up. 2016-09-11 20:31:49 +01:00
James Crook
545d741eb2 Make Audacity source more like DarkAudacity source. 2016-09-11 13:03:37 +01:00
James Crook
b7ab140622 Guess at cause of Linux build breaker. 2016-09-08 22:30:16 +01:00
James Crook
315679dad5 Bug 1508 - Scrubbing: Release mouse to exit Scrub Mode started by click & drag in Scrub Ruler 'no longer working'
It WAS working, just not the way QA wanted, because releasing mouse click when in the ruler and on the first seek continued the seek/scrub cycle.  Introduced a 'mInOneShotMode' variable to complete the baroque behaviour in the way that was requested.  Also updated tool tip code to reflect the one-shot and non one-shot difference in tooltip and status.
2016-09-08 19:02:55 +01:00
Paul Licameli
b973698fdf Simplify some iterations over lists 2016-09-08 12:04:08 -04:00
Paul Licameli
2263a0f477 Don't use wxArrayPtrVoid with casts, use std::vector 2016-09-08 11:08:49 -04:00
Paul Licameli
67cec5ad83 Make many counts of tracks and channels unsigned...
... And in some places where a library uses signed types, assert that
the reported number is not negative.

What led me to this, is that there are many places where a size_t value for
an allocation is the product of a number of channels and some other number.
2016-09-07 10:11:41 -04:00
Darrell Walisser
5f8c48d520 use std::isnan since c++11 provides it and wxIsNan is broken in c++11 2016-09-04 17:00:12 -04:00
Paul Licameli
6043638e31 Another std::min, more auto & decltype, remove more casts 2016-08-29 20:07:43 -04:00
James Crook
5d0951c643 Bug 1497 - Time controls not accepting direct typed input
Caused by optimisation of NumericTextCtrl::ValueToControls().  It now only updates on a change, and because mValueStr was being updated without calling value to controls, the string was not being identified as having changed.
2016-08-25 11:33:59 +01:00
James Crook
2a113f7ae4 Paint over region between Grabber and Pin button.
Numbers from the timeline were previously visible here.
2016-08-22 15:56:37 +01:00
James Crook
555767f2ad Bug 1487 - (Residual) Scrub and Seek are enabled when there is no audio to operate
Fixed QP Region created when no audio, and dragging in Scrub Ruler.
2016-08-22 15:23:15 +01:00
James Crook
f9d269bcee Change ScrubBar to ScrubRuler
This also makes it clearer in the code when we are dealing with a Toolbar ID (for the scrubbing toolbar) and when we are dealing with a button ID (for enabling/disabling the scrub ruler).
2016-08-22 12:25:36 +01:00
Paul Licameli
1189cfd62a Identify the few unsafe narrowing conversions from sampleCount...
... I believe this list of four places is exhaustive.

There are many, many more safe narrowings that I examined.

This resulted from changing the definition of sampleCount in my builds so that
narrowing conversions failed to compile without some fixes, and I examined and
fixed every place.

The rest of that work is not yet shared.
2016-08-21 15:28:32 -04:00