Paul Licameli
3d102a3390
Access BlockFile::mFileName without copying, with proper multithreading cautions
2016-04-17 13:58:21 -04:00
Paul Licameli
94cf94718e
Redefine ODLocker as movable, and it may try-lock only.
2016-04-17 13:58:21 -04:00
Paul Licameli
185d5e132d
Avoid some wxString copies
2016-04-17 13:58:21 -04:00
Paul Licameli
3e6f0bed78
fix bugs in previous
2016-04-17 13:58:21 -04:00
Paul Licameli
7172e2ae98
travis
2016-04-17 13:31:16 -04:00
Paul Licameli
87f368f380
Redo AliasedFile using wxFileNameWrapper.
2016-04-17 03:31:16 -04:00
Paul Licameli
09b7fed2f9
ODLock has a non-blocking TryLock (not yet used); remove unnecessary mallocs.
2016-04-16 14:15:01 -04:00
Paul Licameli
b6fdffbab2
Don't copy wxFileName often, it's not lightweight! Use wxFileNameWrapper...
...
... which is a new class that defines moves.
2016-04-16 11:57:39 -04:00
Gale Andrews
195296f22f
Add access key for new warning
2016-04-16 02:15:57 +01:00
Paul Licameli
da23526860
Condition variable needs the associated mutex locked only when waiting.
2016-04-14 16:37:22 -04:00
Paul Licameli
61177a15ad
More consistent mutual exclusion in calls to certain sf_ functions; ...
...
... also SFCall to simplify thread-safe calls, and SFFile for RAII of SNDFILE
objects.
2016-04-14 15:20:37 -04:00
Paul Licameli
24df87bb4c
Fix resource leaks in the usage of the FFMPEG library with RAII objects...
...
... This includes failure paths in the initialization if import. Those
resources would have been reclaimed before program exit, but not as soon as
they should have been.
... This also includes certain leaks that would happen every time a file is
successfully imported or exported. We never used avformat_free_context or
av_dict_free as we should have!
... There were also AVPacket objects repeatedly reinitialized without proper
cleanups in between. That might have leaked memory too.
2016-04-13 20:31:54 -04:00
Paul Licameli
2207ebeb7d
Merge branch 'revert'
2016-04-13 18:11:59 -04:00
Paul Licameli
def73e80ef
Revert "Simplify WaveTrack::Locker"
...
This reverts commit 02a2bdc92b7a572fefb37f72f71a2c7cd69c986c.
2016-04-13 18:11:45 -04:00
Paul Licameli
5d28a05702
RAII object for pausing and unpausing OD manager
2016-04-13 17:57:10 -04:00
Gale Andrews
0e0b0d999d
Correct name of Lithuanian translator.
2016-04-13 13:00:32 +01:00
Paul Licameli
316ed3afc2
Fix another memory leak in FFmpeg import.
2016-04-13 00:22:39 -04:00
Paul Licameli
c760361867
Merge branch 'master' of github.com:audacity/audacity
2016-04-13 00:12:57 -04:00
Steve Daulton
5b968e8250
Fix bug 1374
2016-04-12 21:58:44 +01:00
Paul Licameli
02a2bdc92b
Simplify WaveTrack::Locker
2016-04-12 12:03:01 -04:00
Gale Andrews
5667d2c028
Fix remaining name display problems on Windows
...
and use \u rather than \x to ensure correct character is displayed, as suggested by David Bailes
2016-04-12 13:18:23 +01:00
Paul Licameli
1033095696
RAII for locking of WaveTracks
2016-04-12 00:55:59 -04:00
Paul Licameli
48658097d6
Fix static_assert in default_delete and define move before unique_ptr
2016-04-12 00:55:59 -04:00
Paul Licameli
f06dadbd68
Comment out unused function declarations
2016-04-12 00:55:41 -04:00
Paul Licameli
f7780adbf5
Comments about CloseLock() functions
2016-04-12 00:54:55 -04:00
Paul Licameli
cfaf3564a2
travis
2016-04-11 16:00:29 -04:00
Paul Licameli
f9da767cbd
Remove a friend declaration from Project, privatize a pointer member...
...
... and make implementation of that pointer a smart one.
2016-04-11 14:42:57 -04:00
Paul Licameli
6c2773cb0b
This really fixes a bug, but only with certain Experimentals enabled...
...
... and certain other changes too. It is involved in code that makes sure
the save of a file with incomplete on-demand loads properly waits for them
to finish. It should not really affect production.
The experimentals are EXPERIMENTAL_OD_FLAC and EXPERIMENTAL_OD_FFMPEG.
2016-04-11 14:04:55 -04:00
Paul Licameli
df28289058
Avoid repeated calls to BlockFile::GetFileName...
...
... because wxFileName is not a featherweight.
2016-04-11 09:46:00 -04:00
David Bailes
85e928de73
Making access keys for preview buttons consistent
...
In std::unique_ptr<wxSizer> CreateStdButtonSizer(wxWindow *parent, long buttons, wxWindow *extra)
changed access key of preview button from v to P, so that it's consistent Preview buttons created elsewhere.
2016-04-11 13:48:13 +01:00
Paul Licameli
6b954dc0f4
Fix mac build
2016-04-11 07:42:51 -04:00
Paul Licameli
b0c55e4386
Bug1358: On Mac, undocked toolbars and screenshot window should not vanish...
...
... when switching from Audacity to another application.
2016-04-11 06:44:38 -04:00
Paul Licameli
f00144e9a5
Sweep for filename copying: various
2016-04-10 22:26:28 -04:00
Paul Licameli
2d7e21536e
Sweep for filename copying: prefs and effects
2016-04-10 22:25:49 -04:00
Paul Licameli
c3cca71461
Sweep for filename copying: import and export
2016-04-10 22:24:12 -04:00
Paul Licameli
8f02213e23
travis
2016-04-10 21:19:15 -04:00
Paul Licameli
f94b3b3afa
Add some const qualifiers to BlockFile methods
2016-04-10 21:05:20 -04:00
Paul Licameli
daf92c43f8
Sequence::Copy is a factory returning smart pointer. WaveClip stores it.
2016-04-10 20:47:45 -04:00
Paul Licameli
ae5c5c2b4a
Simplify recent GStreamer changes with deleters.
2016-04-10 15:17:28 -04:00
Paul Licameli
59af732763
Mac build fixes; and implement deleters for our imitation unique_ptr
2016-04-10 14:15:51 -04:00
Paul Licameli
2696da89cb
One more use of smart pointer object SampleBuffer, in Nyquist.h...
...
...Leaving no "naked" DeleteSamples. Only SampleBuffer::Free now calls it
directly, and SampleBuffer calls Free in its destructor.
2016-04-10 00:07:21 -04:00
Paul Licameli
def8b7fa9b
MakeCursor returns smart pointer; TrackPanel stores smart pointers to cursors
2016-04-09 23:07:27 -04:00
Paul Licameli
414d0faa65
AudacityApp::ParseCommandLine returns smart pointer
2016-04-09 23:02:25 -04:00
Paul Licameli
70bd46b8ad
travis
2016-04-09 22:55:15 -04:00
Paul Licameli
98f739a076
cleanup the previous
2016-04-09 21:43:17 -04:00
Paul Licameli
093f055f1d
Make GStreamer compilable (but it doesn't link), and rewrite with lots of RAII
2016-04-09 20:45:12 -04:00
Paul Licameli
7e8aad9148
Define finally
2016-04-09 20:44:38 -04:00
Paul Licameli
9c18d3853d
ImportFileHandle::GetStreamInfo returns reference. Don't dereference NULLs.
2016-04-09 16:18:29 -04:00
Paul Licameli
eb6e093912
Pass arrays by reference into AudioIO::StartStream
2016-04-09 15:14:07 -04:00
Paul Licameli
b28ec2957a
Make EXPERIMENTAL_MIDI_OUT compilable, but it doesn't link
2016-04-09 15:10:05 -04:00