1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00

4602 Commits

Author SHA1 Message Date
Paul Licameli
1c07741d57 Sizers are owned by wxWindow objects when added, so use safenew, or...
... use unique_ptr in the interim between building them and adding.

This checks eliminates some naked news, which were not paired with deletes.
2016-02-18 18:58:38 -05:00
Paul Licameli
c7d3ff7299 Merge branch 'sizers' 2016-02-18 14:51:17 -05:00
Paul Licameli
4d78e353c3 Revert "sizers"
This reverts commit 84c0a0b6663a1210be502a76ab9c48dd330b3919.
2016-02-18 14:50:52 -05:00
Paul Licameli
ce316aa651 Fix bug in Track > Resample 2016-02-18 08:25:02 -05:00
Paul Licameli
143e3b0ce1 Fix bug in Track > Resample 2016-02-18 08:23:15 -05:00
Paul Licameli
de2e410367 Merge branch 'master' into Sequence 2016-02-18 08:19:50 -05:00
Paul Licameli
97a69e9ccc A few more safenew 2016-02-18 07:17:26 -05:00
Paul Licameli
84c0a0b666 sizers 2016-02-18 02:54:50 -05:00
Paul Licameli
4d154c4d97 Fix bug when Split New with selection that extends past end of track... 2016-02-17 21:47:26 -05:00
Paul Licameli
30f161f5c4 Fix bug when Split New with selection that extends past end of track...
... but I think there may be some other off-by-one bugs (that existed before my
changes) in treatment of the last sample of a selected range.  Need to
look more closely.
2016-02-17 21:45:42 -05:00
Paul Licameli
5ee04beae4 Merge branch 'master' into Sequence 2016-02-17 21:45:35 -05:00
Paul Licameli
f6e3c26535 XMLFileReader uses std::vector 2016-02-17 18:19:40 -05:00
Paul Licameli
dbaa811577 Stack-allocate where possible! ...
... Removed many unnecessary naked news and deletes.
2016-02-17 18:15:57 -05:00
Paul Licameli
be1d9b7dd5 Remove more uses of at(); use a std::vector of bare pointers, not wx array 2016-02-16 09:35:44 -05:00
Paul Licameli
55d85f1b25 Remove more uses of at(); use a std::vector of bare pointers, not wx array 2016-02-16 09:35:03 -05:00
Paul Licameli
b0295c34df Merge branch 'master' into Sequence 2016-02-16 09:29:41 -05:00
Paul Licameli
7988e814bd Define make_unique properly, use in at least one commonly visited place...
Which is file opening.

So we can be sure it compiles and works on all platforms.
2016-02-15 14:30:41 -05:00
Steve Daulton
7f223c261a Added Low rolloff for speech preset for Eq effect
Addition of preset requested by QA
2016-02-15 16:15:00 +00:00
Steve Daulton
dad346ec23 Fix build for Debian Stable 2016-02-15 15:54:11 +00:00
Paul Licameli
df6a7c5464 More uses of safenew for classes we derive from wxWindow classes...
... Also removed some unnecessary deletes of widgets that are managed by parent
windows
2016-02-14 20:39:28 -05:00
Paul Licameli
3f237daddc Use macro safenew for many allocations of wxWindow subclasses 2016-02-14 20:20:19 -05:00
Paul Licameli
6052b5f9be Throw by value, catch by reference: don't use pointers...
... that's what the better books on C++ recommend.
2016-02-14 19:36:17 -05:00
Paul Licameli
7c4c45a0d5 "new"->"NEW" in comments, easier to find remaining naked operator new 2016-02-14 18:52:41 -05:00
Paul Licameli
56e7653343 "delete"->"DELETE" in comments, easier to find remaining naked operator delete 2016-02-14 18:50:45 -05:00
Paul Licameli
6706b19af8 Define macro safenew and template functions std::make_unique 2016-02-14 13:20:52 -05:00
James Crook
2f406647da Merge pull request #101 from henricj/dep
Enable the DEP and ASLR flags.

https://msdn.microsoft.com/en-us/library/bb430720.aspx

DEP: Prevents data being executed as code.  We'd only need it disabled if we were doing self modifying code that jumped into 'data'.
ASLR: Randomizes program layout, so malicious code jumping to a fixed address would need change.  ASLR gives far less protection than one might think, given techniques to work around it.  Some tools depend on ASLR being off, so the decision to enable it may be something we reverse later.
2016-02-13 19:42:09 +00:00
James Crook
697d668d55 Merge pull request #100 from henricj/manifest
Update the manifest pragma to match the docs.

Using * for processorArchitecture should work on both 32 and 64 bit systems, with Audacity compiled for 32 bit.
2016-02-13 19:17:45 +00:00
James Crook
9b06aa55d5 Merge pull request #105 from scootergrisen/master
Update danish (da) translation
2016-02-13 19:07:41 +00:00
James Crook
e57496e766 Updated version number in doxygen. 2016-02-13 18:53:54 +00:00
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
scootergrisen
6ef1b66a67 Update danish (da) translation 2016-02-08 17:01:04 +01: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