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

12154 Commits

Author SHA1 Message Date
Leland Lucius
c1407cdca9 Force use of our wxWidgets and fix RPATH handling 2020-07-05 13:39:57 -05:00
Paul Licameli
33210ec8c7 Add sqlite3.h to CMakeLists.txt for easier browsing in the IDEs 2020-07-04 15:48:32 -04:00
David Bailes
a415c3fe38 Commit 51b3b0f - minor update
Using init capture removes any danger of using the wrong value of MacroReentryCount
2020-07-04 12:56:42 +01:00
David Bailes
51b3b0f19a Bug 2499 - Macros: applying macro to project focus problem
Problem:
Applying macro to project always sets first track as focus.

The problem was introduced by commit 06cddda, which accidentally declared cleanup2 in the wrong scope.
This meant that ProjectHistory::RollBackState() was always called, which eventually causes TrackPanel::OnUndoReset() to be called, which sets the first track to be the focus.

Fix:
Declare cleanup2 in the correct scope.
2020-07-04 09:06:53 +01:00
David Bailes
d966303558 First commit
If any of the commands are cancels, an entry for the macro remains in history.
2020-07-04 08:58:58 +01:00
Leland Lucius
4f129ae0af AUP3: Change database blocksize to 64KB
Preliminary tests show it to be a bit faster than the default
4KB.  For a simple example, generate 2-hour chirp dropped from
11 seconds to 7 seconds.  Not a lot, but...
2020-07-03 20:43:53 -05:00
Leland Lucius
f3816b30d9 Not ready to commit ImportAUP.cpp just yet 2020-07-03 18:00:56 -05:00
Leland Lucius
015ba548c2 AUP3: Add SaveCopy macro command
To go along with new menu item.

And adjust prompting for filenames in Save dialogs to return
to Save dialog if file can't be overwritten.
2020-07-03 17:12:26 -05:00
Leland Lucius
c04ed76b6b AUP3: Fixes a couple of reported issues
Add the missing "File -> Save Project -> Backup Project..." menu item

Allows "File -> Save Project -> Save Project" to save unmodified
projects.
2020-07-03 14:38:57 -05:00
Leland Lucius
337e223754 AUP3: Change journal format to WAL
And remove the deletion of the journal file.
2020-07-03 11:34:53 -05:00
Leland Lucius
48287e9b0d AUP3: Provides relief from slow shutdown
This is a hack to fix the long delay at Audacity shutdown
after editing large files and tossing the results (not
saving).
2020-07-02 22:08:39 -05:00
Paul Licameli
127696879d
Unitary changes (#599)
* Define SampleBlockFactory replacing static members of SampleBlock...

... This will become an abstract base class

* Sequence and WaveTrack only store SampleBlockFactory not Project...

... This adds a dependency from Track to SampleBlock which temporarily enlarges
a cycle in the dependency graph

* Register a global factory of SampleBlockFactory...

... so that later we can make an abstract SampleBlockFactory, separate from the
concrete implementation in terms of sqlite, and inject the dependency at startup
avoiding static dependency

* New concrete classes SqliteSampleBlock, SqliteSampleBlockFactory...

... separated from abstract base classes and put into a new source file,
breaking dependency cycles, and perhaps allowing easy reimplementation for other
databases in the future.

Note that the new file is a header-less plug-in!  Nothing depends on it.  It
uses static initialization to influence the program's behavior.

* Compile dependency on sqlite3.h limited to just two .cpp files...

... these are ProjectFileIO.cpp and SqliteSampleBlock.cpp.

But there is still close cooperation of ProjectFileIO and SqliteSampleBlock.cpp.
This suggests that these files ought to be merged, and perhaps ProjectFileIO
also needs to be split into abstract and concrete classes, and there should be
another injection of a factory function at startup.  That will make the choice
of database implementation even more modular.

Also removed one unnecessary inclusion of ProjectFileIO.h

* Fix crashes cutting and pasting cross-project...

... in case the source project is closed before the paste happens.

This caused destruction of the ProjectFileIO object and a closing of the sqlite
database with the sample data in it, leaving dangling references in the
SqliteSampleBlock objects.

The fix is that the SqliteSampleBlockFactory object holds a shared_ptr to the
ProjectFileIO object.  So the clipboard may own WaveTracks, which own WaveClips,
which own Sequences, which own SqliteSampleBlockFactories, which keep the
ProjectFileIO and the database connection alive until the clipboard is cleared.

The consequence of the fix is delayed closing of the entire database associated
with the source project.

If the source project is reopened before the clipboard is cleared, will there
be correct concurrent access to the same persistent store?  My preliminary
trials suggest this is so (reopening a saved project, deleting from it, closing
it again -- the clipboard contents are still unchanged and available).
2020-07-02 18:11:38 -05:00
Paul Licameli
1fcb77ebce
Unitary fixes (#598)
* Eliminate unneeded back-pointer to project from non-wave Tracks...

... now that DirManager is gone

* Remove unused declarations

* SampleData::mProject was not used

* Correct ProjectFileIO::GetLibraryError

* Remove unnecessary #include directives
2020-07-02 11:42:25 -05:00
SteveDaulton
e7fd679ae6 Bug 2500 - 'EQ XML to TXT Converter' fails on CRLF line endings 2020-07-02 00:50:16 +01:00
Paul Licameli
b4ce083185 Prevent possible dangling pointers to Project from Clipboard 2020-07-01 18:38:45 -04:00
Leland Lucius
8ea07572c1 AUP3: Several fixes
These mainly address the bugs that Steve reported and a couple
more I found along the way.

Corrected ProjectFileIO::GetMinMaxRMS() - It was still using the
original method of keep all block data in memory.  I missed it
when I redid everything.  Fixes his Amplify crash.

Temporary filenames should no longer be shown to the user.

Resaves will no longer present a Save As dialog.

Cleaned up duplicate pathname handling in ProjectFileIO.

Returned proper errors when loading a project
2020-07-01 13:26:20 -05:00
James Crook
299710f0a9 Add comments to document the SQL. 2020-07-01 14:55:06 +01:00
James Crook
bc50e21532 .aup3 Tweaks
- SQLite added to libs in readme.txt
- User message 'aup not associated' updated to 'aup3'
- Typos strind -> string, in -> is
- No translation of debug message
2020-07-01 12:59:38 +01:00
Leland Lucius
d39590cf41 AUP3: First round of updates
!!! THERE WILL NO DOUBT BE BUGS !!!

This is a big one and there's still several things to
complete. Just want to get this in the wild to start
receiving feedback.

One big thing right now is that it will NOT load pre-aup3
files.  An importer is on the way for that.
2020-07-01 02:30:18 -05:00
Leland Lucius
b1beb20ae9 AUP3: Remove obsolete audio file cache 2020-07-01 01:14:10 -05:00
Leland Lucius
cbf1bb558e AUP3: Removes OD code related to project file handling
This removes all of the OnDemand code embedded throughout
    the main codebase. Individual files related specifically
    to OD have been left in place, but removed from the build.
2020-07-01 01:14:05 -05:00
Leland Lucius
2fbfd3e0a5 AUP3: Add SQLite to the project 2020-07-01 01:13:37 -05:00
Henric Jungheim
639a82a4a0
Be more careful when handling grid keyboard navigation. (#589)
If the grid is empty or does not have a selected cell, the current
row and column must still maintain these class invariants:
   -1 <= current_row < rows
   -1 <= current_column < columns
    if either current_row or current_column is -1, then the other
       shall also be -1

wxGrid uses wxGridNoCellCoords to test for current_row == -1 &&
current_column == -1.  We treat the case where only one
of the coordinates is -1 as if both are -1.
2020-06-29 16:34:50 +01:00
Antonio P
7d2aad8c6a
Update audacity.desktop.in (#583)
Spanish (es) traslation added
2020-06-29 16:32:44 +01:00
Grzegorz Pruchniakowski
3fa7e76ade
kr => ko in Korean (#585)
kr => ko in Korean
2020-06-29 16:30:48 +01:00
James Crook
9acabbbed3 Fix mw2html byte artifact issues.
The conversion from Python2 to Python3 had some issues.
- Characters outside the ASCII range got converted to \xe2\x80 numbers
- Single quotes got escaped.
- The entire doc was enclosed in quotes.

These changes address those, and also remove html comments.
2020-06-28 11:07:17 +01:00
James Crook
de50f55f61 Update build instructions 2020-06-28 11:03:49 +01:00
James Crook
d42f0e327c Start development of 3.0.0 2020-06-28 11:02:43 +01:00
James Crook
16d52f63a4 Windows: Update setup wizard Audacity-2.4.2 2020-06-19 16:16:47 +01:00
James Crook
191704cc07 BUILD_LEVEL set to 2, ready for release. 2020-06-19 15:26:41 +01:00
James Crook
bf0d27de33 Update README.txt 2020-06-19 15:25:31 +01:00
Leland Lucius
eeb8122a1d
Bug 2488 - Windows: Change Pitch effect with high quality stetching much slower in 2.4.1 than 2.3.1 (#580) 2020-06-19 09:54:15 +01:00
Seanán Ó Coistín
1e9fe1c954 Update Irish Translation 2020-06-18 23:08:35 +01:00
Grzegorz Pruchniakowski
fdcaff90ac
Update Polish Translation (2 string fixes) (#578)
Two fixes, dźwięku and uzyskać.
2020-06-18 15:15:20 +01:00
Antonio Paniagua Navarro
ceaa29187b Update Spanish Translation 2020-06-18 12:45:28 +01:00
Hussam al-Homsi
f74dcb7ca6 Update Arabic Translation 2020-06-18 12:44:34 +01:00
Dimitris Spingos
660426294a Update Greek Translation 2020-06-17 22:18:48 +01:00
Bruno Ramalhete
e9099afdb2 Update Portuguese Translation 2020-06-17 22:17:40 +01:00
Hwanyong Lee (Ajou)
c4a71f05bc Update Korean Translation 2020-06-17 22:16:44 +01:00
Paul Licameli
3feda9e189 Remove CommonTrackPanelCell.h from Track.h 2020-06-17 14:54:36 -04:00
Grzegorz Pruchniakowski
8784689c1f
Update Polish Translation (#576)
Update Polish Translation from Transifex

Greetings,
Gootector
2020-06-17 12:39:23 +01:00
David Bailes
a1cb9c154a Extended import prefs: minor accessibility fixes
In the importer order list, ensure the selected item is also the focus.
2020-06-17 10:35:05 +01:00
pafri
24f1a2c877
Update cs.po (#575)
Update Czech Translation.
2020-06-16 16:21:16 +01:00
Leland Lucius
3276234ae8 Bug 2484 - OPUS import fails 2020-06-16 09:05:29 -05:00
Leland Lucius
456177a66d Bug 2470 - Linux/Mac: Modules may not be found if earlier version failed 2020-06-15 20:06:33 -05:00
SteveDaulton
d31db975ee pipeclient.py: stop reader if pipe broken
Prevent 100% cpu if Audacity quits while pipeclient still running.
2020-06-15 23:17:32 +01:00
Leland Lucius
7892e95d39 Fix off-by-one test reported by Henric Jungheim 2020-06-15 15:53:38 -05:00
Leland Lucius
e7e27aa7e9 Bug 2478 - Windows: with an empty rules list in "Extended Import" prefs - Tab or Home crashes Audacity 2020-06-15 08:55:38 -05:00
David Bailes
cc1c395b33 Bug 2477 - visibility of newly added focused track
Problem: Newly added track which is set as the focus can be only partially visible or invisible.

If TrackPanel::OnEnsureVisible is called after a new track has been added, then in that function the line:
mListener->TP_ScrollUpDown(height);
can lead to incorrect results, as the vertical scrollbars have not yet been updated to take into account the additional track.

Fix:
Update the scrollbars in TrackPanel::OnTrackListResizing().
2020-06-15 14:45:15 +01:00
Leland Lucius
adbc1ba4b7 Bug 2467 - Modules are not available for "Portable" Audacity 2020-06-15 08:26:46 -05:00