1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 09:39:42 +02:00

11048 Commits

Author SHA1 Message Date
Paul Licameli
1887928fe2 ProjectManager::GetHoursMinsString returns TranslatableString 2019-12-28 23:49:18 -05:00
Paul Licameli
4afd93e84e XO for dummy strings and format arguments in uses of wxPLURAL 2019-12-28 23:49:18 -05:00
Paul Licameli
3b9442a000 Fewer uses of macro _ in Nyquist.cpp 2019-12-28 23:49:18 -05:00
Paul Licameli
e0d57a0e6b Use TranslatableString in TimerRecordPathCtrl 2019-12-28 23:49:17 -05:00
Paul Licameli
956e0813c4 SliderAx uses TranslatableString 2019-12-28 23:49:17 -05:00
Paul Licameli
65a13fd3d6 Remove unused variable 2019-12-28 23:49:17 -05:00
Paul Licameli
259359a283 Update some calls expecting TranslatableString in disabled code 2019-12-28 23:49:14 -05:00
Paul Licameli
18942d9909 Rename a function in Distortion.cpp 2019-12-28 19:56:59 -05:00
Paul Licameli
d6cd48cde1 Eliminate uses of macro _ in Distortion 2019-12-28 19:56:59 -05:00
Paul Licameli
8b532546c9 Bug2267: Nyquist prompt should allow multiline input...
... Fixing a side effect of the fix for bugs 2107 and 1329 which was done at
commit da66806 in version 2.3.3
2019-12-28 19:54:31 -05:00
Paul Licameli
fb5e871d0a Revert "Bug2267: Nyquist prompt should allow multiline input..."
This reverts commit 33bd2a4d93bbb1fc0dc3367896182b7f3678025a.
2019-12-28 19:49:13 -05:00
Paul Licameli
8c4bc6c91f Make some more text windows read-only 2019-12-28 19:43:36 -05:00
Paul Licameli
33bd2a4d93 Bug2267: Nyquist prompt should allow multiline input...
... Fixing a side effect of the fix for bugs 2107 and 1329 which was done at
commit da66806 in version 2.3.3
2019-12-28 19:35:45 -05:00
Paul Licameli
7171220630 Preliminaries for fixing duplicated track names in split views 2019-12-28 13:45:23 -05:00
Paul Licameli
8905e52ee0 Override TrackPanelDrawable::DrawingArea() properly for track names 2019-12-28 13:36:47 -05:00
Paul Licameli
71b3fc0647 Factor rectangle computation out of DrawTrackName 2019-12-28 13:36:47 -05:00
Paul Licameli
a65ab2146b Rewrite DrawTrackName with fewer magic numbers, rename variables 2019-12-28 13:36:47 -05:00
Paul Licameli
996d60de81 Remove undefined member function 2019-12-28 13:36:46 -05:00
Paul Licameli
7c70d78430 Pass TrackPanelDrawingContext into TrackPanelDrawable::DrawingArea() 2019-12-28 13:36:46 -05:00
Paul Licameli
6f80a5c08b FileExtension passed to BuildCleanFileName: no leading dot...
... consistently with the comment describing the type alias FileExtension
2019-12-27 17:44:02 -05:00
Paul Licameli
d6d4ee3c29 Reviewed uses of type alias FileExtension, it belongs in more places 2019-12-27 17:40:42 -05:00
Paul Licameli
3f88df06ec Fix inconsistencies in default extension passed to SelectFile...
... It must be empty, or else one extension not including the leading dot;
then correct the string passed to FileSelector in lib-src, which should be
a filename pattern
2019-12-27 11:49:07 -05:00
Paul Licameli
ccefe8da5f Remove unused default arguments for FileDialogWrapper 2019-12-26 22:13:36 -05:00
Paul Licameli
3117128e08 Rewrite many formattings of long user-readable texts with XO not _ 2019-12-26 22:12:19 -05:00
Paul Licameli
f932d2d550 Rewrite export of data in FreqWindow.cpp 2019-12-26 22:11:45 -05:00
Paul Licameli
ced6221b57 Rewrite format of output in Benchmark.cpp...
... Note that %ld must replace %d in many formats to keep it working, because
wxWidgets does more type-checking inside TranslatableString::Translation(),
because we now capture arguments with type-smart modern C++ variadic templates,
rather than using the old C variadics.
2019-12-26 22:11:44 -05:00
Paul Licameli
cf5c18b9b3 Rewrite export of data in Contrast.cpp 2019-12-26 22:11:44 -05:00
Paul Licameli
700c3deba9 Rewrite composition of long texts in AboutDialog.cpp 2019-12-26 22:11:40 -05:00
Paul Licameli
d96471f176 Rewrite composition of long texts in HelpText.cpp 2019-12-26 22:11:33 -05:00
Paul Licameli
dc0723f629 Rewrite dump of audio and MIDI device data in AudioIOBase.cpp 2019-12-26 22:07:06 -05:00
Paul Licameli
d2eb085bd6 Fix export of Plot Spectrum on Mac 2019-12-26 21:38:38 -05:00
Paul Licameli
23cd7f40f3 Fix export of Contrast data on Mac 2019-12-26 20:36:34 -05:00
Paul Licameli
f60d8d299a Remove some more uses of naked wxString in the interface of ShuttleGui 2019-12-26 15:35:56 -05:00
Paul Licameli
416cdbefb6 ShuttleGuiBase::DoTieChoice is no longer needed 2019-12-26 15:33:47 -05:00
Paul Licameli
d396472c9f Rewrite overload of TieChoice that took wxString& instead of int& ...
... let it take TranslatableString& instead.

It was used only in AudioUnitEffect.cpp.
2019-12-26 15:33:47 -05:00
Paul Licameli
e7783f4fde Remove declaration of undefined function in ShuttleGui 2019-12-26 15:33:47 -05:00
Paul Licameli
8b65b1ae08 ShuttleGui::StartNotebookPage takes TranslatableString...
... and remove an unused overload
2019-12-26 15:33:47 -05:00
Paul Licameli
744f4b626c Fix unreported bug in AudioUnit effects...
... When locale is not English (and translation is complete enough, as in
French) then the switching from Generic to Full interface in Options... did not
work.

(Locales lacking translations of the strings "Full" and "Generic" didn't have
this problem.)

(AudioUnit effects still don't implement a "Basic" interface distinct from
"Generic" regardless of locale.  That's another matter.)
2019-12-26 15:31:17 -05:00
David Bailes
3a453126e8 Keyboard interface for scrubbing
- There are two new commands: Scrub Backwards and Scrub Forwards.
- These commands appear on the Transport sub menu of the Extra menu.
- The commands have default shortcuts U and I, and are in the standard default set.
- After pressing one of the two keys, playback continues until the key is released. (Note that this means that the command on the  Extra > Transport menu can't actually be used for scrubbing as it executes a KeyDown immediately followed by a KeyUp, but the menu items are needed so that the current keystrokes can be seen and changed.)
- Playback starts from the cursor position, or the start of a time selection if there is one.
- The speed of playback is determined by the zoom level. If the zoom level is normal, then the playback speed is one quarter of the normal playback speed. Zooming in (Ctrl + 1), halves the playback speed, and zooming out (Ctrl + 3) doubles the playback speed. There are minimum and maximum playback speeds of one sixteenth, and four respectively.
- You can scrub to the end of the audio, even if there is an initial selection. In other words, scrubbing forwards does not automatically stop at the end of the selection.
- Normally, when one of the keys is released, the position of the cursor is set to the time when the key was released.
- If during the time one of the keys is pressed the left bracket and or right bracket keys are pressed to set the start and/or end of the selection, then when the scrubbing key is released, the change to the selection made by pressing the bracket keys is preserved - the position of the cursor is not set to the time when the key was released.

This implementation is affected by two existing bugs:
1. Bug 1954 - Clicks may occur starting/pausing play-at-speed or Scrub. (See comment 19 and attached image).
2. Bug 1956 - Windows: MME and WDS playback cursor is buffer length ahead of actual audio playing. This means that on Windows, WASAPI is preferable if scrubbing is being used for the accurate positioning of the cursor.
2019-12-26 10:04:34 +00:00
Paul Licameli
eba984303c TranslatableString::Format is aware of std::reference_wrapper 2019-12-25 15:12:44 -05:00
Paul Licameli
c2c308733b Define output operator << taking TranslatableString 2019-12-24 13:30:24 -05:00
Paul Licameli
d2631307a6 TranslatableString no longer inherits from wxString 2019-12-24 13:29:08 -05:00
Paul Licameli
6c0f2d344e Keep EXPERIMENTAL_OD_DATA compilable 2019-12-24 12:01:24 -05:00
Leland Lucius
487016727e Fix include 2019-12-24 03:24:14 -06:00
Leland Lucius
036efda65e Prevent system sleep at a different point
Instead of only when recording (it broke monitoring), now Audacity
will prevent the system from sleeping while any audio I/O is active.

This might be a little strong-handed though and maybe should be a
preference option.
2019-12-24 00:33:54 -06:00
Paul Licameli
57350ff104 Rewrite conditionally compiled Add/TieCheckBox calls 2019-12-24 00:31:06 -05:00
Paul Licameli
5bfd5716b3 Rewrite a commented-out ProgressDialog 2019-12-24 00:20:33 -05:00
Paul Licameli
519b16f6ca Keep EXPERIMENTAL_OD_FFMPEG compilable 2019-12-24 00:16:28 -05:00
Paul Licameli
2d3cea1d2c Keep advanced options of NoiseReduction compilable 2019-12-24 00:00:08 -05:00
Paul Licameli
84f0cd1422 Many more uses of TranslatableString, mostly in ShuttleGui 2019-12-23 19:50:45 -05:00