1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

8865 Commits

Author SHA1 Message Date
Paul Licameli
7d9c82f470 Output device should be changeable even when no input devices...
... I observed that you couldn't, with a Mac Mini connected to a monitor;
two output devices (monitor and built-in) but no input device (there is no
built in mic)
2018-07-05 01:55:09 -04:00
Paul-Licameli
7c544ace78 Newer MSVC compiler allows alignas 2018-07-04 23:35:50 -04:00
Steve Daulton
3c657ea05d Fix bug 1873 2018-07-04 21:00:51 +01:00
Steve Daulton
1be17fc7a7 Fix bug 1894 2018-07-03 00:58:41 +01:00
Steve Daulton
a06e561cb7 Support version strings in Nyquist plug-ins
For shipped plug-ins, the version number is the same as the Audacity
release version when the plug-in was last modified.
2018-07-02 22:41:59 +01:00
James Crook
356fdeba40 Show Pin/Unpin button in red, if recording. 2018-06-29 17:00:25 +01:00
James Crook
20178b15e1 Fix some 'declaration hides' warnings.
We were for example getting many of these:
\audacity\src\widgets\numerictextctrl.h(171): warning C4458: declaration of 'value' hides class member

MSVC2013 didn't warn about these, but MSVC2017 does.
2018-06-27 12:36:13 +01:00
James Crook
3f92321547 Appveyor build settings
- WindowsTargetPlatformVersion=10.0.17134.0; latest fixes, but believed still compatible with Windows 7.
- Platform=Win32;
- PreferredToolArchitecture=x64; 64 bit build tools can use more memory.
- PlatformToolset=v141; v140 would use MSVC2015 tools.  v141 matches MSVC2017 IDE builds.

If we don't specify these, we get the defaults and could get wxWidgets compiled with SDK8.1 (default) and Audacity with a SDK 10.
2018-06-27 11:57:27 +01:00
David Bailes
c2bc21030f Accessibility: stop NVDA always reading track 1 after an undo or redo
Problem: the call mTrackPanel->SetFocusedTrack(NULL); in AudacityProject::OnUndo, and OnRedo cause NVDA to read the name of track one before reading the name of the track finally focused.
These calls were introduced by this commit:
Author:			llucius <llucius@47890b92-0858-11df-a26f-8b716316a5bc>
Date:			9 years ago (23/03/2009 10:56:39)
Commit hash:	bb7e9c186ab538d20ee5fa6a77da533902ec79a3
Children:		0034ab439e
Parent(s):		4ed2ff6dbf

Invalidate FocusedTrack pointer after undo/redo as it is no longer valid...I wonder if there are other cases like hits???

Fix: In TrackPanelAx, the last focused track is now stored as a weak_ptr, so these calls can be removed.
2018-06-27 11:23:49 +01:00
James Crook
3b7fdafca8 Update AppVeyor for MSVC2013 -> MSVC 2017 2018-06-26 20:51:27 +01:00
Henric Jungheim
d8b7e3d8a9 Switch the default toolset from VS2013 to VS2017 2018-06-26 06:53:48 -07:00
Henric Jungheim
68b7330b69 Avoid MSVC trying to use wxTabTraversalWrapper's move ctor. 2018-06-26 06:53:47 -07:00
Henric Jungheim
6ae5bd46ad Rework locale VS project to use CustomBuildStep.
Make sure Clean, Build, and Build targets work.
Use NuGet to provide gettext for msgfmt.
2018-06-26 06:53:47 -07:00
henric
75bc81a1dd Don't use a separate build script for optional files. 2018-06-26 06:53:47 -07:00
Henric Jungheim
40ce9d6fca portaudio-v19: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
ee5609b8ee libsndfile: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
2ebb341490 libscorealign: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
bd5b333787 libnyquist: Update for VS2015+ 2018-06-26 06:53:47 -07:00
Henric Jungheim
8bf2071fdd lv2: Update for VS2015+ 2018-06-26 06:53:47 -07:00
henric
659f8cbc6f Get rid of the Windows compatibility headers stdint.h and inttypes.h.
Microsoft provides their own these days.
2018-06-26 06:53:47 -07:00
David Bailes
8b87e18c6d Accessibility: clean up track focus events after an effect is applied.
Problem. When an effect is applied, whatever track is the original focus, there is a focus event for track one. This causes NVDA to read out the track name of track 1, which is unnecessary noise.
The reason for this is that the execution of the Progress dialog destructor causes AudacityProject::OnActivate() to be called which causes a set focus on the TrackPanel. When this happens, the pointers to the selected tracks have changed, but the final focus has not been set (at the end of AudacityProject::DoEffect()). So TrackPanelAx::GetFocus returns the first track.

Fix: Modify TrackPanelAx::GetFocus so that if the existing pointer to the focused track is null, then use the track at the same position, if it exists.
2018-06-26 09:13:29 +01:00
Steve Daulton
95ef41413c Better fix for bug 1891
Also reverts previous fix attempts.
2018-06-21 23:54:38 +01:00
Paul Licameli
47665836c7 Enh 1890: Allow P&R when cursor is exactly at track end...
... but then adjust time leftward a little, so there is some crossfade
2018-06-21 18:15:25 -04:00
Paul Licameli
a3312f4ae0 Guard against negative values for P&R preferences 2018-06-21 18:01:59 -04:00
Paul Licameli
d76597287a Need acquire ordering in RingBuffer::Clear() too; and comments 2018-06-21 15:23:45 -04:00
Paul Licameli
fcdfd68d73 Stricter memory ordering in RingBuffer 2018-06-21 13:40:01 -04:00
Paul Licameli
bd7e6f7279 Avoid false sharing of the two atomic variables of RingBuffer 2018-06-21 13:10:30 -04:00
Steve Daulton
f145574dd6 Fix for 1891 is specific to Mac / Linux
This is only really a temporary fix - we should be using the
standard "Manage" button, but imo Equalization require a
thorough overhaul.
2018-06-21 15:55:20 +01:00
Paul Licameli
8a158c741e String and dialog changes related to Punch and Roll 2018-06-21 01:35:59 -04:00
Paul Licameli
46fb2960c0 Links to help for errors in usage of P&R 2018-06-20 23:02:22 -04:00
Paul Licameli
76282a1da1 Simply "Pre-roll:" not "Pre-roll duration:" 2018-06-20 22:56:54 -04:00
Paul Licameli
cbe6c9eb46 "Time shift for record" replaces "Track shift after record" 2018-06-20 22:55:28 -04:00
Paul Licameli
3b11093766 Change message for Punch and Roll when track selection is inappropriate 2018-06-20 22:53:47 -04:00
Paul-Licameli
af62506175 Update pointer to our wxWidgets custom branch in build texts 2018-06-19 22:50:34 -04:00
Paul Licameli
22f48d31e1 Rewrite RingBuffer with standard atomics...
... Contrary to the old comments, this class was no longer thread safe with
multi-core, because of the possibility of out-of-order reads and writes.

Use the minimal necessary memory ordering, not the default and maybe expensive
std::memory_order_seq_cst

At least one clicky recording has been seen where many small groups of
samples, a common power in two in size, seem to get displaced rightward.

I suspect out of order reads and writes might have caused that and this commit
might prevent it.
2018-06-19 14:04:34 -04:00
Paul Licameli
58fa401faf Don't disable accessibility in Mac build of wxWidgets for Audacity 2018-06-19 09:26:00 -04:00
Steve Daulton
6cff61535b Fix bug 1891 (EQ crash)
This fixes only the crash bug. This effect needs substantial attention.
2018-06-19 11:58:45 +01:00
Steve Daulton
5cdf642133 Fix Travis build 2018-06-18 22:14:38 +01:00
Steve Daulton
5543dc884a Update Sample Data Export to use file browser 2018-06-18 21:32:22 +01:00
Steve Daulton
5e219a031d Fix Factory Preset for Nyquist file browser
Expand platform independent keyword paths before
writing to pluginsettings.cfg.
2018-06-18 21:32:22 +01:00
David Bailes
c976630f40 MacroCommandDialog: add accessibility name for details text box 2018-06-18 14:23:15 +01:00
David Bailes
0c9dfc4933 More convenient shortcuts for selecting prev/next clip
The shortcuts for these commands were changed in commit e01122e841fc25cd004ecea77b1665015700f937 to avoid conflicts with the access keys of menus.
They were changed to Ctrl+Alt+P/N. These aren't very convenient for typing, so this commit changes them to Alt+comma/period.
2018-06-18 13:58:14 +01:00
Steve Daulton
60204730e7 Update Sample Data Import to use file browser
Also temporarily change type from 'tool' to 'generate' to allow testing
while Tools menu still has problems.
2018-06-15 12:59:11 +01:00
Steve Daulton
c8c93319ec File browser widget for Nyquist plug-ins 2018-06-14 21:27:48 +01:00
Paul Licameli
d80d134415 Revert the changes in ring buffers, which didn't work for 24 bit format
* commit 'a0bf2892fa20009a798f28387fc0e96bbe3260a0':
  Revert "Possibly correct some cases of clicky playback or corrupt recording..."
  Revert "Fix compilation on Windows."
  Revert "Fixes for new ring buffers..."
2018-06-13 19:08:56 -04:00
Paul Licameli
a0bf2892fa Revert "Possibly correct some cases of clicky playback or corrupt recording..."
This reverts commit 6dca4f785904fd870d6829dd51aa0c56803012dc.
2018-06-13 19:07:39 -04:00
Paul Licameli
8407ef1e6c Revert "Fix compilation on Windows."
This reverts commit 21e4847b90eae9fca29bfe3fb99beb66aec78d57.
2018-06-13 19:06:51 -04:00
Paul Licameli
5803c31801 Revert "Fixes for new ring buffers..."
This reverts commit 92d27c618b30c491dff038f4796b5cabbc41d673.
2018-06-13 19:06:41 -04:00
James Crook
66a87ecaa9 Disallow punch and roll from t=0.0
Punch and roll from 0.0 deletes the whole track before punch and rolling.
That is unlikely to be what the user intended, since there is then no audio
cue, so disallow it.

Also reduced indentation.
2018-06-13 17:00:09 +01:00
James Crook
ed34e6b029 Vaughan to emeritus in AboutDialog credits. 2018-06-12 21:00:36 +01:00