1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-07 07:39:29 +02:00

5593 Commits

Author SHA1 Message Date
Paul Licameli
2677ec5fe1 Bug1831: Export Multi fails? Erase incomplete, restore original file! 2018-01-24 14:38:44 -05:00
Paul Licameli
533ca24079 Raphaël Marinier: remove more unnecessary changes of format...
... A search of FFmpeg source code shows that the nonstandard %t format
occurs nowhere in it.
2018-01-24 14:06:09 -05:00
Raphaël Marinier
c6e1665b52 Simplification in av_log_wx_callback, because wxLogDebug is threadsafe. (#246)
wxLogDebug is threadsafe since wxWidgets 2.9.1 (releated in 2010)
according to
http://docs.wxwidgets.org/3.0/overview_log.html#overview_log_mt.

Note also that wxLogDebug could already have been called from multiple
threads even with EXPERIMENTAL_OD_FFMPEG unset. According to FFmpeg
doc, the logging callback can be called from multiple threads because
some codecs are multithreaded:
https://ffmpeg.org/doxygen/2.5/group__lavu__log.html#ga14034761faf581a8b9ed6ef19b313708
2018-01-24 13:22:26 -05:00
Paul Licameli
e82fcf9549 From Raphael Marinier: Fix Linux crash importing bad .wav file...
... A mistaken, unneeded change of a vsprintf format string caused a crashing
misinterpretation of a format argument; just writing errors to log.
2018-01-24 12:36:44 -05:00
Paul Licameli
2dbee940e0 Fix Windows build 2018-01-24 11:44:06 -05:00
Paul Licameli
9e8d36adc2 Fix Windows build 2018-01-24 07:48:37 -05:00
Paul Licameli
52a7f2320d Re-fix some warnings about mixing signed and unsigned better...
... Assuming that large unsigned magnitudes with high order bit set are not
the problem, but signed negatives of small magnitude may be:

1) Always cast the unsigned to signed in comparisons, not the other way.

Also:

2) Cast unsigned TERM to signed by itself, before subtracting.  Don't cast
the result.

3) Rewrite some comparisons by moving subtracted term to other side.

See commits
d2fe7b1757d77d93d82d53685a118517a4d2e996
f463eda36c059236ecc168919c745eb687170c95
2018-01-23 18:51:53 -05:00
Paul Licameli
58e4823f68 Bug1829, more: detect out-of-space when writing FFmpeg formats 2018-01-23 07:58:41 -05:00
Darrell Walisser
f4c8920e23 Fix truncation on FFmpeg export
This fixes the file truncation (missing last ~1000-2000 samples)
on file export. It will also eliminate error dialog some users
have witnessed.

Also cleans up the code
- simplified the Finalize function
- add error dialog for encoder errors
- always writes a final frame even if it has to pad with silence
- correctly determine when a codec supports short final frame
2018-01-22 17:46:09 -05:00
Paul Licameli
38568f611d Bug1829, more: check all errors flushing and closing export files...
... MP3 export already did this, the other five needed work.
2018-01-22 16:48:20 -05:00
Paul Licameli
07bf088565 Bug1829, more: correct error checks for writing MP3 & add more of them 2018-01-22 16:48:17 -05:00
Paul Licameli
94247cc650 Some comments in ToolDock.cpp 2018-01-22 12:14:02 -05:00
Paul Licameli
89d3d6e6e6 Comments and name changes to clarify code for toolbar configurations 2018-01-22 12:13:40 -05:00
Paul Licameli
19d4fcab2a Remove unnused members 2018-01-22 12:11:45 -05:00
Paul Licameli
58b44baf05 Some NULL checks... somehow I crashed on Mac but can't repeat now 2018-01-22 12:11:43 -05:00
Steve Daulton
336b2a8fe2 Allow scripting to select beyond tracks end time
This is required to set selection for generate effects in
new projects.
2018-01-22 15:19:58 +00:00
Steve Daulton
2890e4db27 Allow new empty project to be saved 2018-01-22 11:52:14 +00:00
Paul Licameli
2ee3ba5761 Bug1828: ESC from dragging of a docked toolbar...
... Now restores state again properly and does not cause undocking of other
bars when you restart.

Redoes commit 2d56c8ec3286aa0a4a22e5be9148a2a1e01b8e17 better
2018-01-21 05:42:49 -05:00
Paul Licameli
e1cf056710 Bug1829: Inform user, erase incomplete files whenever export fails...
... Also checked more error returns from library functions.  Detect it when
write fails (maybe because of exhaustion of space) -- don't continue,
pretending all is still well.

Using one non-specific error message in many places, because we're in string
freeze now.
2018-01-20 19:56:32 -05:00
Pokechu22
1c36409da2 Bug 1819: Hover indication on note track channel toggle appears on all tracks (when they rerender) 2018-01-19 17:01:37 -05:00
Paul Licameli
9f2ff354f6 Bug1754: Telephone and AM Radio curves should not flatten...
... Problem was a wrongly implemented comparator for wxArray Sort().

The array of points was not really sorted, and results differed with repeated
calls to Sort().

Unlike with std::sort, these comparators are supposed to be trichotomous.

Problem dates to commit 7d5e54e364fcccd630274f2658703543d8c596eb

See also commit 4a500c77dda5592468f931db0c791236679157b4
2018-01-18 14:48:48 -05:00
James Crook
f8be26a9b8 Spaces allowed in batch command parameter values now
PROVIDED you use single or double quotes around the string.
2018-01-18 15:30:05 +00:00
James Crook
f9fb4b3b7d Bug 1773 - Wave Color not grayed out in TCP dropdown menu when in Spectrogram view
The "Wave Color" option is now not shown in spectrogram mode.
2018-01-18 12:19:09 +00:00
Paul Licameli
f78a418df8 An alpha-only toggle command for extra dropout detection; default off 2018-01-17 20:35:56 -05:00
James Crook
a019addafb All preferences in scrollers
We now do not need to worry about the preference dialogs getting too big for small screens.
2018-01-17 20:41:40 +00:00
Paul Licameli
81b22a2b2b Reimplement the insertion of zeroes at drop-outs...
... and correct for latency only when there is at least one playback track
2018-01-17 12:56:35 -05:00
James Crook
be0e6cd605 Scripting: Unicode chars in responses are now OK.
This is also relevant to batch scripting.  We need to stay in UTF8 to be safe.
Thanks to Robert Hänggi for reporting this issue.
2018-01-17 17:49:43 +00:00
Paul Licameli
8077c1db04 Change the text of the checkmark for the dropout warning 2018-01-17 10:18:49 -05:00
Paul Licameli
b0cb3868c3 Make a label track named "Dropouts" not "Errors" 2018-01-17 09:35:14 -05:00
Paul Licameli
c2ee1380da Don't indent lines in the dropout warning 2018-01-17 09:21:07 -05:00
James Crook
b384f99e62 Bug 1825 - Import Uncompressed File Dialog Incorrect Reference to Menu Item 2018-01-17 13:27:00 +00:00
James Crook
c0fceb3b66 Wording changes.
- Losing a ':' on a toolbar
- Clarity that we are fitting project/selection to width, not height.
2018-01-17 11:15:32 +00:00
Paul Licameli
bc295bd7d7 translation hints 2018-01-16 21:45:12 -05:00
Paul Licameli
54553b82b7 Fix things that confused xgettext 2018-01-16 21:45:10 -05:00
Paul Licameli
059e186db6 Treat save-as of a file to its own path as a simple save 2018-01-16 20:05:54 -05:00
Paul Licameli
133bbd927d We can simplify logic further 2018-01-16 20:05:52 -05:00
Paul Licameli
d37c319923 Fewer uses of DirManager::GetProjectName() 2018-01-16 20:05:48 -05:00
Paul Licameli
356763c90b remove unused 2018-01-16 17:51:03 -05:00
Paul Licameli
4d364ee7f3 Remove overwrite argument -- it's always !fromSaveAs 2018-01-16 17:34:27 -05:00
Paul Licameli
1d9b8b7bad Undo confusing tangle of Save and SaveAs each calling the other...
Now Save may call SaveAs, which does not call back; each calls DoSave.
2018-01-16 17:28:43 -05:00
Paul Licameli
e066c4f38d Insert zeroes only if dropout detection is enabled 2018-01-16 14:28:07 -05:00
Paul Licameli
130e55cdf5 Use WarningDialog for drop-outs, and change the wording 2018-01-16 13:56:44 -05:00
Paul Licameli
e88615c1b6 "Vamp" not "VAMP" in Effects preferences 2018-01-16 12:28:23 -05:00
Paul Licameli
af279072b5 Correct recent comments...
... compatiblity of plug-in settings is the real problem, not the plug-in
registry.
2018-01-16 12:28:21 -05:00
Paul Licameli
4628d6afa7 Remap effect type from "Audacity" to "Built-in", carefully...
... doing that only for the user-visible string, seen in the Manage>About menu
of the effect dialog and in the sorted or grouped Effect/Generate/Analyze
menus.

But don't for the string used internally and written into pluginregistry.cfg,
so that compatibility of that file is preserved.

See also commits cafbff9ff82520ff7d4344570385752869c6d230 and
c6bbe4c3dae8a52bb4b7a3c720af97bc3bd69769
2018-01-16 11:11:36 -05:00
Steve Daulton
1fe857cff1 Whitespace corrections 2018-01-16 02:04:42 +00:00
Paul Licameli
b0690a2a5c Disable part of the drop-out detection...
... The part that checks the previously unused statusFlags argument of
audacityAudioCallback can make zero-length labels.  I did provoke this into
happening repeatably on macOS using a debug build, zero buffer length in device
preferences, and a busy CPU running other programs, within just two minutes of
recording.

But close zooming in on the label, and listening, revealed nothing obviously
wrong, no click in the playback.  So I consider that a false positive.

But the part of the drop-out detection that would make nonzero length
labels, because the other AudioThread is lagging in its writes to disk --
this part remains.  Yet I have not yet provoked this into happening.
2018-01-15 19:33:54 -05:00
Paul Licameli
d2749068f1 Allow reporting of drop-outs to be turned off by Recording prefs...
... Just in case it turns out to make some false positives.
2018-01-15 18:48:44 -05:00
Steve Daulton
0a93172265 Cautions re. size of Preference pages
Clarify meaning / purpose of assert in PrefsDialog
and add scrollers to pages that may grow in future versions.
2018-01-15 22:23:59 +00:00
Paul Licameli
b4ee17ed82 a translation hint 2018-01-15 15:16:15 -05:00