Darrell Walisser
58d478c039
Update for FFmpeg 3.5
2018-01-28 15:49:44 -05:00
Darrell Walisser
3d4a357f95
Update for FFmpeg 3.5
2018-01-26 19:18:25 -05:00
Paul Licameli
ec31d105bf
Simplify conditions
2018-01-26 10:12:14 -05:00
Paul Licameli
0a035b0ffc
Avoid bit-shifting of -1 value
2018-01-26 10:12:14 -05:00
Paul Licameli
c40b254626
while -> if
2018-01-26 10:12:14 -05:00
Paul Licameli
4644b5cb16
Simplify condition
2018-01-26 10:12:14 -05:00
Paul Licameli
168db87ddf
Fix identical sub-expressions of - operator
2018-01-26 10:12:14 -05:00
Paul Licameli
7c73011629
Where if and else branches were the same, simplify...
...
... None of the examples was really a bug.
ExpandingToolBar.cpp is unused in fact.
2018-01-26 10:12:13 -05:00
Steve Daulton
8529350707
Zoom on mouse when no selection
...
Just cursor clicked but no time selection counts as no selection.
2018-01-26 14:23:35 +00:00
Paul Licameli
d4b21bb33e
Bug 1600: Should keep progress dialog visible throughout Exp. Multi
2018-01-25 15:58:37 -05:00
Paul Licameli
f5737be02c
Ran autoreconf --force --no-recursive
2018-01-24 22:34:35 -05:00
Paul Licameli
22605c089f
Enable upstream dropout detection
2018-01-24 17:46:57 -05:00
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