Paul Licameli
daa7617e88
auto_ptr (deprecated) -> unique_ptr (preferred in C++11)
2016-02-13 12:00:28 -05:00
Paul Licameli
9019df832f
Now let's try out a few new language features...
...
Rvalue refs, move ctor, =delete, range-for, auto, std:vector<>::emplace_back()
There are also performance improvements from eliminating an indirection and
using move of strings instead of copy.
2016-02-13 11:27:48 -05:00
Paul Licameli
6ec7c619fe
Now let's try out a few new language features...
...
Rvalue refs, move ctor, =delete, range-for, auto, std:vector<>::emplace_back()
There are also performance improvements from eliminating an indirection and
using move of strings instead of copy.
2016-02-13 11:20:14 -05:00
Paul Licameli
4fefad1028
Merge branch 'master' into antifrag
2016-02-13 11:19:38 -05:00
Paul Licameli
575463252e
Compile with gcc 4.8 and -std=c++11
2016-02-13 11:02:38 -05:00
Thomas Fehér
2e552188b0
use gcc 4.8 for build
2016-02-13 10:01:29 -05:00
Thomas Fehér
be15ddee88
fix linking on linux
...
This was only working because g++ can be used to link C++ and
Objective-C object files. As soon as CXX is set to a different compiler
this failed on linux, trying to link objects compiled with a different
compiler.
2016-02-13 10:01:11 -05:00
Gale Andrews
01a95c50ba
Clarify Xocde 4.3.3 for Lion has the 10.6 SDK...
...
...in spite of what Apple's Downloads page says.
2016-02-12 14:31:20 +00:00
Paul Licameli
16cd736fba
Use [] not at() -- avoid array bounds checking in release build!
2016-02-11 12:37:05 -05:00
Paul Licameli
c4657a7b0e
Use [] not at() -- avoid array bounds checking in release build!
2016-02-11 12:36:27 -05:00
Paul Licameli
9ebaf1b94d
Merge branch 'master' into Sequence
2016-02-11 12:35:52 -05:00
Paul Licameli
5f76da4f5b
Bug1321 (partial): Don't change output balance when closing Preferences unless...
...
... you really changed Device preferences.
2016-02-11 12:04:12 -05:00
James Crook
3f4a9191ec
__WXMAC__ -> __APPLE__ in Theme.cpp #ifdef
...
This change helps macports and is (apparently) neutral for the platforms we build for. See:
https://trac.macports.org/ticket/47189#comment:35
2016-02-08 21:47:59 +00:00
Paul Licameli
9ca1e32e5b
Many improvements in class Sequence, mostly for more efficient memory use...
...
...Motivated by bugs218, 1319, slow loading and redrawing of large project on
Windows; which apears to be the fault of memory fragmentation or bad locality.
The most important thing here is removing the unncessary extra indirection in
accessing SeqBlock. That is, keep arrays of the blocks themselves, not of
pointers to heap-allocated SeqBlocks.
2016-02-04 09:38:24 -05:00
Paul Licameli
dd3df60a83
Avoid repeated FindBlock call in Sequence::Get when we can
2016-02-04 09:31:39 -05:00
Paul Licameli
dc599116f7
Use SampleBuffer in Sequence, reuse so there are fewer allocations of buffers
2016-02-04 09:31:38 -05:00
Paul Licameli
ca56876aaf
Various minor fixes in Sequence
2016-02-04 01:06:51 -05:00
Paul Licameli
e6987284e3
Rewrote Sequence::FindBlock, without recursion, and with dictionary search
2016-02-04 00:53:55 -05:00
Paul Licameli
6c28276daf
Use RAII idiom for lock and locking mutex in Sequence
2016-02-04 00:53:54 -05:00
Paul Licameli
13f7d0a81b
Added consistency checks for Sequence, hoisted out of inner loops.
2016-02-04 00:53:27 -05:00
Paul Licameli
7be911b7fb
Simplify the use of Sequence::Blockify()
2016-02-03 22:17:10 -05:00
Paul Licameli
51fbc697cf
One less indirection accessing Sequence::mBlock
2016-02-03 22:17:08 -05:00
Paul Licameli
38ba19183d
One less indirection accessing SeqBlock
2016-02-03 22:17:07 -05:00
Paul Licameli
f684bdb973
More arrays of little structures
2016-02-03 22:15:01 -05:00
Paul Licameli
d2a7f35f98
One less indirection accessing RowData
2016-02-03 22:14:30 -05:00
Paul Licameli
ba7bd5b710
Remove unnecessary indirection in arrays of some tiny structures
2016-02-02 11:58:39 -05:00
Paul Licameli
5de27ac36f
One less indirection accessing InvalidRegion
2016-02-02 11:49:54 -05:00
Paul Licameli
507cee7ee5
One less indirection accessing Region
2016-02-02 11:49:53 -05:00
Paul Licameli
fbc75907dd
One less indirection accessing EnvPoint
2016-02-02 11:49:52 -05:00
Paul Licameli
488ccf143e
Fix small memory leak in Ruler.cpp
2016-02-02 11:47:58 -05:00
Paul Licameli
a0d78b92cd
Fix unreported memory leak in Import Raw
2016-02-01 20:49:35 -05:00
Paul Licameli
8e46ff48d5
Fix unreported memory leak in command-line export...
...
... Solution was to stack-allocate!
To make the leak happen, export with "external program" and edit the command to
"foobar" or other nonextistent program instead of lame.
2016-02-01 13:14:06 -05:00
Paul Licameli
321d5259a2
More uses of SampleBuffer, eliminating explicit DeleteSamples calls
2016-02-01 10:16:00 -05:00
Paul Licameli
508286661a
Bug1104: If one stereo channel is shorter, don't buzz or stop playback short...
...
... A better fix this time!
2016-01-31 15:42:23 -05:00
Paul Licameli
fd2e36b538
Revert "Bug1104: When one stereo channel is shorter, don't stop playback at its end."
...
This reverts commit 0b5e35003fd921d5a1788d85b2909da94a4acaf4.
2016-01-31 15:26:44 -05:00
Paul Licameli
0b5e35003f
Bug1104: When one stereo channel is shorter, don't stop playback at its end.
2016-01-31 15:19:47 -05:00
Pavel Fric
c51ddd6c1d
Czech Translation by Pavel Fric
2016-01-31 17:42:23 +00:00
Steve Daulton
7e1504d606
Fix fade direction limitation in Crossfade Tracks
2016-01-31 12:48:39 +00:00
Steve Daulton
76403ba5f9
Fix residual issue for bug 1313
2016-01-30 15:45:35 +00:00
Steve Daulton
d6b8080a5d
Fix for bug 1313
2016-01-29 22:12:41 +00:00
Paul Licameli
eaccd490ec
Bug1320: Correct contrast window miscalculations of RMS
2016-01-29 14:18:47 -05:00
Paul Licameli
3c2e88a6dc
Fix compiler warning
2016-01-29 10:14:52 -05:00
Paul Licameli
c9fa5000fc
Merge branch 'bug1197'
2016-01-28 10:38:44 -05:00
Paul Licameli
f47cb3d528
Bug1197, yet again: extreme zoom-in behavior, now Mac specific: ...
...
...fix differing results on Mac by calculating only in double, so that selection
remains centered at extreme zoom-in for long projects (about 20 min.) and
selection after about 15 min.
2016-01-28 10:36:48 -05:00
Paul Licameli
aa63c19977
Bug1199: Export multiple by labels should not add silence to exported files...
...
... sorry, modifications to Mix.cpp had mistakes.
2016-01-27 22:51:38 -05:00
Paul Licameli
12a2d066ba
Bug1306: Kestroke shortcuts for sub-menu entries now work again...
...
... for instance, Align sub-menu of Tracks.
2016-01-27 16:10:46 -05:00
Paul Licameli
08c27ad226
Bug1299 again: Better fix, to restore window focus after applying a chain.
2016-01-27 15:01:03 -05:00
Paul Licameli
c7eca2c657
Bug1299 again: Better fix, to restore window focus after applying a chain.
2016-01-27 14:58:51 -05:00
Paul Licameli
074d0daf3d
Revert "Bug1299: Shouldn't lose track focus after applying a chain."
...
This reverts commit a44ff801a6deb8fa259c073057e35b736c1c3272.
2016-01-27 14:55:49 -05:00
Steve Daulton
5c2fc5ff7d
Fix bug 1317
2016-01-27 13:38:21 +00:00