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

5933 Commits

Author SHA1 Message Date
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
Paul Licameli
1324d1342a More various small preliminary fixes relating to sampleCount
Comment more cases of bad sampleCount truncation, and even worse...
  Fix progress indicator again: must do a floating-point division...
  A little more type agnosticism
  Remove more unnecessary casts to sampleCount
  Fix more narrowings of sampleCount
2016-08-26 12:43:41 -04:00
Paul Licameli
156e77fcc7 Comment more cases of bad sampleCount truncation, and even worse...
... but whatever the intent was, this class isn't used anywhere.
2016-08-26 12:42:22 -04:00
Paul Licameli
8e42f8a61a Fix progress indicator again: must do a floating-point division...
... or else just get zero!
2016-08-26 12:42:22 -04:00
Paul Licameli
954a914ff7 A little more type agnosticism 2016-08-26 12:42:22 -04:00
Paul Licameli
86b633bab2 Remove more unnecessary casts to sampleCount 2016-08-26 12:42:22 -04:00
Paul Licameli
127b2a6acf Fix more narrowings of sampleCount 2016-08-26 12:42:22 -04:00
Paul Licameli
8102e1717b Merge branch 'master' into HEAD 2016-08-26 12:42:00 -04:00
James Crook
1e0fcbf872 Profiling of spectrogram is opt-in for normal builds. 2016-08-26 12:32:54 +01:00
Darrell Walisser
b2d1470062 OpenMP-ized SpecCache::Populate 2016-08-25 13:44:12 -04:00
Robert Antoni Buj Gelonch
c36417c510 Update Catalan translation 2016-08-25 14:09:58 +02:00
James Crook
5d0951c643 Bug 1497 - Time controls not accepting direct typed input
Caused by optimisation of NumericTextCtrl::ValueToControls().  It now only updates on a change, and because mValueStr was being updated without calling value to controls, the string was not being identified as having changed.
2016-08-25 11:33:59 +01:00
Paul Licameli
96fc293c60 Fewer mentions of type sampleCount; more type deduction for variables
* sampleCount:
  Remove unnecessary casts to sampleCount
  Type agnosticism for some other variables that were not sampleCount...
  Remove many mentions of sampleCount with auto and decltype...
  Use sf_count_t not sampleCount
  some uses of size_t
  Use long long for argument passed to wxString::ToLongLong
  More cautions in SBSMSEffect.cpp...
2016-08-24 14:54:58 -04:00
Paul Licameli
52417c444d Remove unnecessary casts to sampleCount 2016-08-24 14:50:46 -04:00
Paul Licameli
fd2b050d6f Type agnosticism for some other variables that were not sampleCount...
... in some cases, this fixes narrowings.
2016-08-24 14:50:45 -04:00
Paul Licameli
79c79f9cd3 Remove many mentions of sampleCount with auto and decltype...
... This makes much code agnostic about how other things (functions and
arguments) are typed.

Many of these neeed to become size_t instead of sampleCount.
2016-08-24 14:50:45 -04:00
Paul Licameli
b8c1d02058 Use sf_count_t not sampleCount 2016-08-24 14:50:45 -04:00
Paul Licameli
ee5a0db9ff some uses of size_t 2016-08-24 14:50:45 -04:00
Paul Licameli
bf66e4410a Use long long for argument passed to wxString::ToLongLong 2016-08-24 14:50:45 -04:00
Paul Licameli
2949a080d2 More cautions in SBSMSEffect.cpp...
... The narrowings from sampleCount to long might be fixed, but it would
require changes in lib-src
2016-08-24 14:50:45 -04:00
Paul Licameli
5ef9b81a94 Merge branch 'master' into HEAD 2016-08-24 14:50:13 -04:00
Paul Licameli
d81358399e Put Paulstretch in the right place in the Xcode project browser 2016-08-24 13:11:46 -04:00
Paul Licameli
b5e410d987 Fix Windows build differently 2016-08-24 12:13:53 -04:00
James Crook
781de82d02 Workaround build breakers. Needs review.
These changes fix a broken build in Windows.
#include <algorithm> needed for min/max to be in std.
decltype(+name) was declaring a const variable, that could not be incremented.  Changed to auto.
2016-08-23 21:46:12 +01:00
Paul Licameli
b20a9bacad Revert unintended changes in Experimental.h, sorry 2016-08-23 14:27:35 -04:00
Paul Licameli
0d3c00662e Merge commit '1281f1b14b03355f694cd104d6b4d9919de107a6'
* commit '1281f1b14b03355f694cd104d6b4d9919de107a6':
  Common function limits buffer size to sampleCount known to be small
2016-08-23 12:46:37 -04:00
Paul Licameli
1281f1b14b Common function limits buffer size to sampleCount known to be small 2016-08-23 12:46:10 -04:00
Paul Licameli
58b83873a4 Some preliminaries before sweeping the uses of sampleCount
Uniform init in blockfile ctors (prevents implicit narrowings)
  spaces
  change a variable name
  Don't use conversion of sampleCount to bool
  Add explicit cast to sampleCount where negative values are possible
  use std::min and std::max
  an assertion
  LadspaEffect::mSampleRate has type double, like other plug-in effects
2016-08-22 21:46:25 -04:00
Paul Licameli
367ed1dfce Uniform init in blockfile ctors (prevents implicit narrowings) 2016-08-22 21:45:54 -04:00
Paul Licameli
477d8d9d1d spaces 2016-08-22 21:45:54 -04:00
Paul Licameli
26b94a447b change a variable name 2016-08-22 21:45:54 -04:00
Paul Licameli
39df8d0b51 Don't use conversion of sampleCount to bool 2016-08-22 21:45:54 -04:00
Paul Licameli
69064edf20 Add explicit cast to sampleCount where negative values are possible 2016-08-22 21:45:54 -04:00
Paul Licameli
a6de680cdb use std::min and std::max 2016-08-22 21:45:54 -04:00
Paul Licameli
82a5950a6c an assertion 2016-08-22 21:45:54 -04:00
Paul Licameli
2be2e73e66 LadspaEffect::mSampleRate has type double, like other plug-in effects 2016-08-22 21:45:54 -04:00
Paul Licameli
d58ac8d5cb Merge branch 'master' into HEAD 2016-08-22 21:45:32 -04:00
James Crook
2a113f7ae4 Paint over region between Grabber and Pin button.
Numbers from the timeline were previously visible here.
2016-08-22 15:56:37 +01:00
James Crook
555767f2ad Bug 1487 - (Residual) Scrub and Seek are enabled when there is no audio to operate
Fixed QP Region created when no audio, and dragging in Scrub Ruler.
2016-08-22 15:23:15 +01:00
James Crook
8886d1ba41 Bug 1487 - Scrub and Seek are enabled when there is no audio to operate on
I added a new flag, HasWaveDataFlag that checks not only for the presence  of a WaveTrack but also for audio actually in it.  This is now applied to the Scrub and Seek menu items, with the result that they grey out in the menu, and their buttons are dulled on the toolbar, if there is no audio.
2016-08-22 13:25:05 +01:00
James Crook
f9d269bcee Change ScrubBar to ScrubRuler
This also makes it clearer in the code when we are dealing with a Toolbar ID (for the scrubbing toolbar) and when we are dealing with a button ID (for enabling/disabling the scrub ruler).
2016-08-22 12:25:36 +01:00
Paul Licameli
314648e1f1 Identify the few unsafe narrowing conversions from sampleCount... 2016-08-21 15:31:37 -04:00
Paul Licameli
1189cfd62a Identify the few unsafe narrowing conversions from sampleCount...
... I believe this list of four places is exhaustive.

There are many, many more safe narrowings that I examined.

This resulted from changing the definition of sampleCount in my builds so that
narrowing conversions failed to compile without some fixes, and I examined and
fixed every place.

The rest of that work is not yet shared.
2016-08-21 15:28:32 -04:00
Paul Licameli
37687c589f Merge branch 'master' into HEAD 2016-08-21 15:28:07 -04:00
James Crook
be66873fca Restored bevels on TrackInfo.
Aesthetic choice, currently disabled in run up to 2.1.3.
Lowest edge of bevels now hidden correctly on smaller panels (if bevels enabled).
2016-08-21 18:17:51 +01:00
Paul Licameli
d5712a462f Some rewriting in currently unused VoiceKey... 2016-08-21 12:31:40 -04:00
Paul Licameli
d82e87cac3 Some rewriting in currently unused VoiceKey...
... involving distinction of size_t and sampleCount
2016-08-21 12:30:09 -04:00
Paul Licameli
fc584fd2cf Merge branch 'master' 2016-08-21 12:27:42 -04:00
James Crook
6383df2ff6 Bug 1414 - (Residual) Green triangles in scrub bar sometimes appear and sometimes don't
The residual bug was that the PlayHead triangle could appear when in the scrub ruler.  This was an 'off by 2' error in using the size of that region.
2016-08-21 17:02:17 +01:00