1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

683 Commits

Author SHA1 Message Date
Paul Licameli
5f27ae905c Changed misleading terminology in scrubber...
... It was confusing that HasStartedScrubbing() could be true
while also not IsScrubbing()
2018-07-29 14:20:11 -04:00
James Crook
66e203cdca Transcription Toolbar -> Play-at-Speed Toolbar 2018-07-22 18:21:38 +01:00
James Crook
1403e7fa92 Bug 1906 - Issues with dynamic Play-at-Speed (issues 5 & 6)
Now cut-preview and looped play revert to using the old fixed speed play-at-speed.
Unfortunately Scrubbing does not (yet) support looped play or cut-preview.
2018-07-22 15:55:10 +01:00
James Crook
9e1291b2b7 Improve initial and minimum widths of resizable toolbars.
In particular, device toolbar previously could be made ridiculously small.
Also in the default configuration it takes a whole line, so we now use that space in its initial size.

Mixer Toolbar initial size was a little small.  Now it matches the Transport Toolbar width.
Meter Toolbar initial size was too small.
Transcription Toolbar was a little too small.  Better to start out slightly wider than previously.
2018-07-22 15:19:51 +01:00
James Crook
85497ceefa Increase upper limits on slider widths in resizable toolbars.
Worth doing for users with wide screens, who want to use the toolbar at full screen width.
Both toolbars can now expand to a little over 2000 pixels width.
Note that the max sizes affect what is drawn.  You can make the toolbars wider still, but the sliders inside them won't continue to lengthen.
2018-07-21 17:13:08 +01:00
James Crook
8b2fa68a88 Make Mixer ToolBar resizable. 2018-07-21 16:59:33 +01:00
James Crook
132986de1a Make Transcription ToolBar resizable.
I moved 'Fit()' from ToolBars into MeterToolBar, because it is a workaround for an incorrect size calculation by MeterToolBar.  MeterToolBar is sized as if there is no resizer, so when there is one, the toolbar needs to be expanded (using Fit) to accommodate the resizer.

I also set the min size of MeterToolBar to 150, so that some meter will appear, even if Toolbar shrunk to the minimum.
2018-07-21 16:41:32 +01:00
James Crook
17ca54ad4b Bug 133 - Enh: Play-at-Speed slider: Change of playback speed is no longer automatic
This adds a new preference to Playback prefs, VariSpeedPlay, on by default, which makes it possible to vary the playback speed slider whilst audio is playing using play at speed.  The code uses the Scrubbing playback engine.

This code is not final, but is already useful.  Known issues:
  1- Playback does not stop and pop-up the Play at Speed button at the end of playing the selection.
  2- The scrub widget shows uselessly on the scrub ruler when in Play at Speed mode and the status bar proclaims 'Scrubbing'.
  3- At low speeds the playback is clicky, with VariSpeedPlay, even if no changes to speed are being made.

If we can't fix both 1 and 2 by 2.3.0 release time, VariSpeedPlay will be made false by default.
2018-07-20 21:43:07 +01:00
James Crook
eb0e3802b1 Bug 1896 - Linux: Resizing the device toolbar judders badly 2018-07-06 14:52:33 +01:00
David Bailes
bfec6f0aa2 Spectral Selection toolbar: minor accessibility change.
Change the accessible name of the combo box from "Spectral selection" to "Show". It's less verbose, and brings it into line with the "Show" combo box in the Selection toolbar.
2018-07-05 11:44:00 +01:00
Paul Licameli
7d9c82f470 Output device should be changeable even when no input devices...
... I observed that you couldn't, with a Mac Mini connected to a monitor;
two output devices (monitor and built-in) but no input device (there is no
built in mic)
2018-07-05 01:55:09 -04:00
Paul Licameli
a72b8f98c0 Bug1883, more: fix logic for choosing start & end times of recording 2018-06-11 15:02:20 -04:00
Paul Licameli
3051e9ce7e Stop button works during punch and roll recording 2018-06-09 15:43:17 -04:00
Paul Licameli
ed660bdca2 More apt argument name 2018-06-09 15:25:59 -04:00
Paul Licameli
e40420ba72 Rewrite logic for choosing append-record tracks...
... If recording one or two channels, use first unbroken subsequence within the
selected wave tracks for which the total of channels matches exactly; failing
that, use such a sequence among all wave tracks; failing that, record to
new tracks.

If recording more than two channels, and there is at least one selected wave
track, then use the topmost selected wave channels, up to the number of
recording channels, and if fewer channels are selected, just drop the extra
input channels.

If recording more than two, and no wave tracks are selected, ignore existing
wave tracks and record to new tracks.

In any case, the tracks chosen for append-record might not be consecutive
among all the tracks, because non-wave or non-selected tracks may come between.
2018-06-09 13:26:00 -04:00
Paul Licameli
f9cd5595d5 Stop playback of pre-rolled tracks at the right time 2018-06-01 04:28:57 -04:00
Paul Licameli
35a97e09e7 Group arguments to StartStream, and a bit less of #ifdef for MIDI play...
... And pull choice of tracks and options out of DoRecord
2018-05-29 00:22:12 -04:00
Paul Licameli
0635f8802b Fix build 2018-05-28 16:48:04 -04:00
Paul Licameli
49899a561d fix build 2018-05-28 16:30:12 -04:00
Paul Licameli
f52b53fc50 Factor ControlToolBar::OnRecord...
... pulling out the function that chooses existing tracks for append-record,
and a function that does the recording once tracks are chosen.
2018-05-28 15:59:20 -04:00
Paul Licameli
c7f97e7730 Bug1880: don't quantize DBL_MAX resulting in a negative value. 2018-05-28 13:28:08 -04:00
Paul Licameli
f0ebf5823a Better punch-in precision: quantize start and end times for rate...
... So that samples of a new track align precisely with the old track, at least
in case the old track has the same rate and starts exactly at 0, which is
the likely usual case.
2018-05-26 23:46:41 -04:00
Steve Daulton
fdf165d133 Clarify comment 2018-05-24 13:20:53 +01:00
Steve Daulton
a2765d013f Remove duplicate project pointer 2018-05-24 13:20:53 +01:00
Steve Daulton
41315dac95 Make comment clearer 2018-05-24 13:20:53 +01:00
Paul Licameli
318967f00d Revert "If record overrides append because of channel count, record unlimited"
This reverts commit b36482d6494063e6799f793ed5e6b9b696125b1a.
2018-05-17 21:22:31 -04:00
James Crook
c8a31324bc Remove dead code from SelectionBar
and add some comments.
2018-04-14 22:20:08 +01:00
James Crook
7178879397 Flicker-Free Grabbers and Mic/Speaker icons.
Previously we were clearing in Erase Background, giving lots of flicker when resizing some toolbar.
Also fixed a mac Slider background painting issue.
2018-04-13 09:48:20 +01:00
David Bailes
26860d9ef0 Mixer toolbar: change accessibility names of sliders
The third argument of ASlider constructors already provided suitable accessibility names. So removed the unnecessary calls to SetName which set unsuitable names.
2018-04-11 10:17:41 +01:00
Paul Licameli
1c751fd863 Revert "Change procedure to choose append-record tracks once again..."
This reverts commit bbcd924371326692d849480895dfa83171b17515.
2018-04-09 22:33:03 -04:00
Paul Licameli
bbcd924371 Change procedure to choose append-record tracks once again...
... Allow recording stereo into non-adjacent mono tracks, if they are selected.

Prefer the earliest-starting set of tracks in the track list, among either
selected tracks, or else among all tracks.

Therefore if selection contains a mono, a stereo, and a mono in that order,
the two monos may be chosen to record new stereo.
2018-04-09 22:12:50 -04:00
James Crook
0dd3aef6bc Bug 891 - Number-entering bug in kHz High Frequencies. Unfriendly to have to enter High first if new Low is above High.
Spectral frequencies now behave like temporal selection, nudging the 'other' value up or down so that the low and high values don't cross over.
2018-04-09 16:30:09 +01:00
Paul Licameli
8de9c53e9e Allow again recording of stereo into two adjacent mono tracks 2018-04-08 17:41:27 -04:00
Paul Licameli
5fe3c1bdd0 Append-Rec: Prefer first, not last, track with correct # of channels 2018-04-08 16:37:40 -04:00
James Crook
b792094b53 Bug 1710 - The Incredible Shrinking ToolBar
The worst symptoms of this are fully fixed.
1: The device info now uses all the space in the toolbar, no matter how the toolbar is resized.
2: The undocked toolbar can now be moved around repeatedly without changing size at all.

There is a small residual - a much toolbar size change of a few pixels on docking.  The contents though still fit nicely.  The 'incredible' part of this bug is gone.  I'd like us to close this bug as the residual of a few pixels change in the toolbar size on repeated docking and undocking scarcely matters.
2018-04-08 19:51:10 +01:00
James Crook
082752e585 Fix Linux toolbar resizing bug
Bug came in with wx3.1.1 and is related to delays between resizing request and actually doing so.
2018-04-08 19:51:10 +01:00
Paul Licameli
b36482d649 If record overrides append because of channel count, record unlimited 2018-04-07 23:37:51 -04:00
Paul Licameli
9fcccd32ac Rewrite append-record onto only the proper number of channels 2018-04-07 23:32:23 -04:00
James Crook
b60fae4470 Fix some warnings on mac
These are mostly missing 'overrides'
2018-04-07 20:28:27 +01:00
David Bailes
f9ee3cdc45 Fix some of the accessibility names that disappeared with the move to WX 3.1.1
The main change in wxWidgets for the setting of accessibility names is:
7dab555f71 (diff-04f5191d86f95b1c4d5d9c979da65878)

Before this change, with wxUSE_ACCESSIBILITY set to 1, for wxWindow and all the classes derived from it, wxWidgets automatically created accessible objects to handle accessibility itself. Because the way wxWindowAccessible::GetName() was written, the accessibility names of lots of windows and controls had to be set using SetName().

After the change, by default, the accessibility of instances of these classes is handled by Windows. Where the accessibility of a control is handled by Windows, then the accessibility name is automatically set to so the appropriate value. However, an accessible can still be set using SetAccessible() then wxWidgets handles the accessibility for this object.

So for many controls we can just leave Windows to set the accessibility name. However, for controls which don't have any visible labels, or where we want to accessibility name to different from the visible text, then we have to set an accessible object for that control, and then call SetName(). The Class WindowAccessible can be used for this purpose. And for custom widgets, like the TrackPanel, and the NumericTextCtrl, SetAccessible() still has to be called, since they need bespoke accessible objects

So in the cases where we want the accessible name to be different from normal, we now need to explicitly set an accessible object. (Before, this wasn't needed, as accessible objects were automatically created.).

Some notes of the fixes included in this commit:
1. The fixes cover the main window, preferences, and built-in effects. Other fixes will follow.

2. In ShuttleGui, I've set accessible objects for wxTextCtrls and wxSliders. So all of these widgets still need the name set. This was done because there are a lot of instances where these controls need non standard accessibility names, and so it saves having to put lots of SetAccessibles throughout the code.

3. For wxPanel, Windows picks up the accessibility name from the label, and so SetLabel() can be used instead of SetName(). This is just as well, since for windows that contain other windows or controls, setting WindowAccessible as the accessibility object breaks the accessibility tree.

Note that at some stage a lot of calls to SetName() can be removed from the code as they are no longer needed, but it might be better to leave them there for the moment, just in case they are unexpectedly needed.
2018-04-06 17:24:40 +01:00
James Crook
af54ac9cf6 Don't record a stereo track into a mono track
Or more precisely, don't do append-record, if doing so would lose a channel - e.g. if there is only a mono track selected and recording is set to stereo.
2018-04-05 11:53:58 +01:00
James Crook
76f72f0a3b Don't record a mono track into a stereo track. 2018-04-04 22:36:07 +01:00
Paul Licameli
0fb02a8024 IdentInterfaceSymbol in NumericTextCtrl; don't persist translated 2018-03-28 14:00:17 -04:00
James Crook
a4a588610e Revert "Bug 893 - Spectral Selection Toolbar misnamed"
This reverts commit eaada3a51d1cea89e737eb73f607a089e07816a2.
2018-03-26 20:18:37 +01:00
James Crook
eaada3a51d Bug 893 - Spectral Selection Toolbar misnamed 2018-03-25 21:41:56 +01:00
James Crook
35127c44b7 Bug 1548 - Newly recorded tracks do not acquire focus 2018-03-24 16:05:10 +00:00
Paul Licameli
9b7ccc4dff Use TranslatedInternalString for tips of toolbar buttons 2018-03-15 20:13:19 -04:00
andheh
50901b9454 fixed initialization order warnings 2018-03-06 21:29:54 +00:00
Steve Daulton
1ef4d73629 bug 1839 - Consistent recording behavior
Same behavior whether there is playback or not.
2018-02-28 21:20:06 +00:00
David Bailes
1412f21f66 Make the name of a control in the selection bar less verbose
Make the name less verbose for the benefit of the users of screen readers.
2018-02-28 16:18:40 +00:00