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

6031 Commits

Author SHA1 Message Date
Paul Licameli
919d77d176 More uses of min and max 2016-09-06 20:46:25 -04:00
Paul Licameli
f372aee9a1 Merge branch 'master' into sampleCount 2016-09-06 20:45:59 -04:00
Paul Licameli
4ecd93beff fix mac build! 2016-09-06 16:41:33 -04:00
Paul Licameli
35d3dd01f1 fix Windows build 2016-09-06 12:58:22 -04:00
Paul Licameli
3da69173d3 Various incidentals to the ongoing sampleCount sweep
Some simplification in the Repair effect
  Rewrite RingBuffer methods with size_t arguments and returns
  Rewrite Resample::Process to take and return size_t values
  SAMPLE_SIZE macro returns size_t
  BlockFile::GetSpaceUsage() returns an unsigned value
  Return wide type from ImportFileHandle::GetFileUncompressedBytes()...
  Undo a global effect with RAII
  these functions do not need to be virtual
  Comments where casting to sampleCount from other library typedefs
  Fix incorrect comment, use auto
2016-09-06 12:40:30 -04:00
Paul Licameli
9d633f4c47 Some simplification in the Repair effect 2016-09-06 12:39:58 -04:00
Paul Licameli
2910005780 Rewrite RingBuffer methods with size_t arguments and returns 2016-09-06 12:39:58 -04:00
Paul Licameli
c8e7372886 Rewrite Resample::Process to take and return size_t values 2016-09-06 12:39:58 -04:00
Paul Licameli
b093a8e406 SAMPLE_SIZE macro returns size_t 2016-09-06 12:39:58 -04:00
Paul Licameli
c9bff2f0f4 BlockFile::GetSpaceUsage() returns an unsigned value 2016-09-06 12:39:57 -04:00
Paul Licameli
0b31690ace Return wide type from ImportFileHandle::GetFileUncompressedBytes()...
... and use override.  But this function isn't (yet?) used anywhere.
2016-09-06 12:39:57 -04:00
Paul Licameli
96242ef2df Undo a global effect with RAII 2016-09-06 12:39:57 -04:00
Paul Licameli
3704dd0eeb these functions do not need to be virtual 2016-09-06 12:39:57 -04:00
Paul Licameli
d23c20c5d1 Comments where casting to sampleCount from other library typedefs 2016-09-06 12:39:57 -04:00
Paul Licameli
c9a9ad6220 Fix incorrect comment, use auto 2016-09-06 12:39:57 -04:00
Paul Licameli
86f5f96b30 Merge branch 'master' into sampleCount 2016-09-06 12:39:37 -04:00
Paul Licameli
ed7bfd8835 Small improvements to the logic of WaveTrackCache 2016-09-05 16:28:04 -04:00
James Crook
9cb7e23e05 Bug 322 - "Save Changes?" dialog does not indicate which project is being closed
When there is ambiguity about which project is being saved, the project title bars now change to be more informative.
2016-09-05 19:20:08 +01:00
Darrell Walisser
5f8c48d520 use std::isnan since c++11 provides it and wxIsNan is broken in c++11 2016-09-04 17:00:12 -04:00
Paul Licameli
92aa05237b Scrub queue records positions as sampleCount not long 2016-09-04 16:30:58 -04:00
Paul Licameli
837a96d18a Scrub queue records positions as sampleCount not long 2016-09-04 16:28:40 -04:00
Paul Licameli
1fdbccbcc5 Merge branch 'master' into sampleCount 2016-09-04 16:09:24 -04:00
James Crook
2fb18e8961 Bug 1496 - Mouse down while undoing in Envelope Tool corrupts Undo stack
The Ctrl-Z was interrupting the enveloping, making it finish, but it then got asked to finish again on a mouse up.  This change stops the second finish from happening.
2016-09-03 20:19:34 +01:00
James Crook
06b623bbb1 Bug 1220 - (Residual) OS X: Exclude directories with substring /tmp/ in them. 2016-09-03 17:49:57 +01:00
James Crook
f6870896a1 Fix Mac build breaker.
Caused by declaring a variable later than a conditionally compiled piece of code.
Net result is that Mac will be less tolerant of a window partly off the top of the screen than Windows will be, and will reset it to the default.
2016-09-02 18:25:59 +01:00
James Crook
8d55ab9afd Bug 1314 - Audacity always launches in middle of first monitor after quit on any part of second monitor.
Splash screen still always appears on first screen (intentional).
Also I fixed issue where new project windows would appear on first screen, even if Audacity on second.
2016-09-01 23:27:44 +01:00
James Crook
9787bf7978 Bug 1220 - (Residual) OS X: Audacity's temp dir defaults to location that is cleaned up on reboot. 2016-09-01 22:09:37 +01:00
James Crook
6881163129 Bug 1484 - (Residual) Alternative Ctrl-Click behaviour on Wave
Previously Ctrl Click on Wave behaved exactly as Ctrl Click on Track Control Panel.  With this change on wave it
(a) No longer toggles.  It only adds.
(b) It will extend and can be drag extended.

It is possible to change (a) to be toggle if that is desired.
This should ease the creation and extension of discontinuous track selections.
2016-08-31 23:38:54 +01:00
James Crook
09e6d20dbc Credits for Darrell Walisser (OpenMP for Spectrum Display) 2016-08-31 22:43:39 +01:00
Paul Licameli
d16c722d90 Merge pull request #158 from walisser/upstream
improved OpenMP SpecCache::Populate
2016-08-31 17:36:40 -04:00
Darrell Walisser
180da5a769 change reserve to resize, clarify what omp atomic is used 2016-08-31 11:25:32 -04:00
James Crook
c57f829200 Bug 1484 - (Residual) Shift-Click calculates start/end for itself.
Smarter logic, which extends down from the first or up from the last.
2016-08-30 23:46:12 +01:00
James Crook
9d059bf13b Ungroup Effects on Windows and Mac. 2016-08-30 22:16:39 +01:00
James Crook
576020f203 Bug 1505 - Window size not restored on launch (using virtual desktop)
Fixed by being more tolerant of window being (slightly) off screen.  Windows 10 appears to mis-report the window size by 6 pixels.  This fix allows the user to restore a window that is (slightly) off screen.  That's OK and helps those users who position and size the window very precisely.
2016-08-30 22:13:33 +01:00
James Crook
beeb0c790c Bug 1484 - (Residual) Shift click on Wave/Label to extend (once again)
It turns out that having fixed the behaviour of Shift-Click on the Track Control Panel, I'd also fixed the behaviour of Shift-Click on the wave.  But then I blew it by over riding the Shift-Click behaviour on wave to use the version that does NOT horizontally extend.  This change comments out the 'bShift' and so gives us the original Shift-Click behaviour on wave, without undoing the other fixes.
2016-08-30 09:08:24 +01:00
James Crook
c580009063 Effects grouped on Windows and Mac too.
Makes the very long effects menu manageable.
2016-08-30 08:45:09 +01:00
Paul Licameli
7f319d293e More fixes related to sampleCount
Comment another possibly problematic narrowing of sampleCount...
  Another std::min, more auto & decltype, remove more casts
2016-08-29 20:08:22 -04:00
Paul Licameli
44d5d53a2f Comment another possibly problematic narrowing of sampleCount...
... Maybe it's safe, but if so the proof was not so evident from easy
inspection.
2016-08-29 20:07:43 -04:00
Paul Licameli
6043638e31 Another std::min, more auto & decltype, remove more casts 2016-08-29 20:07:43 -04:00
Paul Licameli
e29c455967 Merge branch 'master' into HEAD 2016-08-29 20:06:48 -04:00
James Crook
965a64eb2d Bug 1484 - Cannot one-step extend/contract selections vertically or horizontally to specific tracks 2016-08-29 22:26:11 +01:00
James Crook
6c3149ce20 Fix Add Label at Playback Position flags.
Thanks to Walter Gladwin.
The comment said "Is this correct??" the answer is no.  However the problem only showed when other fixes were made elsewhere, and Add Label at Playback Positions then stopped working when in Pause.
2016-08-29 18:09:53 +01:00
Paul Licameli
38ee7c0e3e Bug 1501 again: don't crash for extreme Start values for FindClipping 2016-08-28 15:53:51 -04:00
Darrell Walisser
ce92dce856 improved OpenMP SpecCache::Populate 2016-08-28 13:00:44 -04:00
Paul Licameli
36ddd98757 Bug1501: Fix bad_alloc crash for some effects with extreme inputs 2016-08-28 12:30:43 -04:00
James Crook
0f2585a8ee Bug 1253 - Assert when changing track spectrogram settings while audio I/O active
I first of all added a warning message if trying to configure while playing.
Then decided that it is more in keeping with current style to grey out the Spectrogram Settings menu item.

So the new warning message should actually never be reached.
2016-08-28 16:32:41 +01:00
James Crook
d2768c6ab9 Try upping compiler version (the easy way). 2016-08-27 20:24:42 +01:00
James Crook
80f61589a2 Fix stray ';'
Was breaking build when FLAC disabled.
2016-08-27 15:21:57 +01:00
Paul Licameli
b53e9ff418 More uses of limitSampleBufferSize 2016-08-27 07:54:32 -04:00
Paul Licameli
3b04bb1726 More uses of limitSampleBufferSize 2016-08-27 07:54:22 -04:00