1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-17 08:01:12 +02:00
Commit Graph

3930 Commits

Author SHA1 Message Date
Paul Licameli
d82e87cac3 Some rewriting in currently unused VoiceKey...
... involving distinction of size_t and sampleCount
2016-08-21 12:30:09 -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
James Crook
26fac64ddd Bug 1478 - Cannot generate or record after starting and stopping Scrub Mode with no audio present
Stream time from the scrubbing audio (which had not started) was coming out as a large negative value.  That in turn led to an out of range selection starting and ending at that value.  Negative stream times now treated as zero when stopping audio.  This does mean that the (fringe) case of stop and set cursor with audio playing to the left of zero, if you are able to do that, will likely set the cursor at zero rather than at the negative time end point.  I think that is probably OK, even good.
2016-08-21 15:19:45 +01:00
Paul Licameli
2969336258 Fix bug in update of progress in CompareAudioCommand 2016-08-21 09:52:10 -04:00
Paul Licameli
56586770e0 EffectClientInterface::SetSampleRate takes double...
... All the overrides (except Ladspa) were casting it to floating poing anyway
2016-08-21 09:51:32 -04:00
Paul Licameli
5cf331ae8c Rewrite WaveTrack::GetEnvelopeValues, taking one less argument...
... In practice this argument was always 1 / rate so it was superfluous.

Also make the buffer size argument unsigned.
2016-08-21 09:45:53 -04:00
Paul Licameli
0c4c835b27 Write and read the wide aliasStart fields carefully...
...They may never have been large enough to matter, but some seek offsets into
files were written as 64 bits but read back as only 32.  It ought to be
consistent.
2016-08-21 09:18:06 -04:00
Paul Licameli
a1d930322c Rewrite Sequence::FindBlock using size_t variables for indices 2016-08-21 09:16:20 -04:00
Paul Licameli
49e699b1df Remove overloads for sampleCount from ConfigInterface...
... The value was always cast to int anyway when writing, and it was used
only for one value in VST effect, which did not need 64 bits
2016-08-21 09:11:44 -04:00
Paul Licameli
854651306c A mutex guarding access to this variable made volatile unnecessary 2016-08-21 09:00:18 -04:00
Paul Licameli
2a7d8dca77 time warper bug 2016-08-21 08:59:48 -04:00
Paul Licameli
4011eba627 Fix bug in disabled experimental code...
a * had got replaced with , and no compiler error!
2016-08-21 08:51:42 -04:00
Paul Licameli
5761972dfa BHug1488: Don't crash exiting from command-line benchmark test...
Problem was that cfd7648fce fixed a memory leak
but created a dangling pointer bug, which does not happen during usual run
of Audacity because AudacityProject::OnCloseWindow is reached then before
destroying AudacityProject.

Fixed it by using a std::shared_pointer for the TrackList that both
AudacityProject and TrackPanel must use.
2016-08-20 13:58:56 -04:00
James Crook
05fe684114 Ungrey more actions, if paused.
This introduces a new variable, mStopIfWasPaused (default true).  Actions which require AudioIONotBusyFlag will now stop the audio, if audio was busy but paused and attempt to continue.

We could perhaps make mStopAudioIfWasPaused into a preference, but I don't think we need to keep even the option of the old behaviour.
2016-08-20 18:52:30 +01:00
James Crook
59988357fb Change default state of scrub bar. Make Togglable via QP.
1) Enable scrub bar by default, to increase visibility of the new feature.
2) Add 'Enable/Disable Scrub Bar' to QP right click menu.

Did not remove Scrubbing from transport menu, as to do so disables scrubbing.
2016-08-20 16:02:06 +01:00
James Crook
28f078dcf7 Bug 1486 - Show/Hide scrub-bar does not persist. 2016-08-20 14:59:36 +01:00
James Crook
1184cd54fe Capitalise 'Manual'
(pointed out by Peter).
2016-08-19 22:07:49 +01:00
James Crook
b1526fbdc8 Change strings for clarity/consistency.
Changes suggested by (translator) scootergrisen
2016-08-19 19:30:21 +01:00
James Crook
6b4a43a0a7 Fix some web addresses which changed with the manual moving. 2016-08-19 19:20:05 +01:00
James Crook
2f54bf197c Change release to reset in ASlider to fix memory leak.
Thanks Paul for alerting me to this.
2016-08-19 13:48:23 +01:00
James Crook
8b90a8f34d Fix bug where MixerBoard sliders did not redraw on resizing.
Vital feature of MixerBoard as the point is to be able to have large sliders.
The problem was that the slider background was cached in a bitmap, and that cached image was not being refreshed on a resize.
2016-08-18 22:52:27 +01:00
James Crook
af61389322 Fix memory leak in CalculateSpaceUsage
Memory leak was caused by diagnostics.
2016-08-18 21:50:34 +01:00
James Crook
df1f69850e Fix memory leak in WriteXML
Memory leak was caused by diagnostics.
2016-08-18 21:47:27 +01:00
Paul Licameli
debe935099 Bug1482: fix hangs caused by 8b72bd2f92 2016-08-17 16:49:55 -04:00
David Bailes
a17966609f Fix for bug 1480
Baselines of text produces by ShuttleGuiBase::AddPrompt and ShuttleGuiBase:AddUnits are different.

Simple fix of changing a style. Presumably this was a typo.
2016-08-17 10:35:40 +01:00
Paul Licameli
a0a76e86d1 Remove naked new and delete in effect preview 2016-08-16 13:30:26 -04:00
Paul Licameli
52cb094f0f A safenew and comment changes 2016-08-16 13:00:07 -04:00
Paul Licameli
8b72bd2f92 Manage block files with std::shared_ptr, BlockHash stores weak_ptr 2016-08-16 12:29:59 -04:00
Paul Licameli
84ccdca5c3 Gather balance info hashes into one struct guarded by an accessor...
Doing BalanceInfoDel in this delayed fashion will be needed when the other
call to it is eliminated, as shared_ptr simplifies the management of BlockFile
and makes the many calls to Ref and Deref disappear.
2016-08-16 12:29:59 -04:00
Paul Licameli
cde61edbf4 Don't assume BlockHashes contain non-null pointers ...
... They won't always, when they become weak pointers.
2016-08-16 12:29:59 -04:00
Paul Licameli
e7b4d935a5 Hide the use of new in factory functions for BlockFiles 2016-08-16 12:29:59 -04:00
Paul Licameli
2ede67be96 Use type alias for pointer to BlockFile, which is still a dumb pointer 2016-08-16 12:29:59 -04:00
Steve Daulton
7b14e68b37 Pass name of proxy effect to EffectSBSMS
Allows progress bar to show meaningful title when using SBSMS
time stretching in Change Pitch/Tempo.
2016-08-16 14:54:34 +01:00
David Bailes
19fa6d2833 Improvements to accessibility names in Change Tempo effect.
The change tempo effect was modified in commit 8e0089c.
The most significant change is to include the "from" length in the accessibility name of the "to" length textctrl. (The nvda screen reader cannot access the value of the "from" length textctrl, and it's not straightforward using Jaws. Note that this issue existed before the recent change of Change Tempo.)

There remains a minor issue of Jaws, but not NVDA reading the names of wxStaticBoxes, and so some repetition in what is read by Jaws.
2016-08-16 13:57:19 +01:00
Paul Licameli
1cad18c479 Merge pull request #150 from RaphaelMarinier/optimize_selection_bar_update_master
Optimize the refresh of the selection bar while Audacity is playing.
2016-08-15 22:04:42 -04:00
Paul Licameli
15a60bde4b Fix linux debug complaints of missing thread shut-down...
... caused by commit b47bcb548e
2016-08-15 21:21:09 -04:00
Paul Licameli
c9204af7fe Rewrite functions managing the missing block file...
... removing one ref and deref of block files.

This unblocks a future development that will manage all block files with
std::shared_ptr.
2016-08-15 13:04:19 -04:00
Paul Licameli
5752dbab02 shared_ptr manages AudacityProject objects, so weak_ptr may be used 2016-08-15 12:43:50 -04:00
Paul Licameli
3c4ac1861c Declare a method as const 2016-08-15 12:43:50 -04:00
Gale Andrews
973358339d Pinned option first (more logical), add access key 2016-08-15 15:40:24 +01:00
Steve Daulton
8e0089c552 Add SBSMS option to Change Tempo effect
Thanks to Clayton Otey for his help and patience.
2016-08-15 12:33:33 +01:00
James Crook
45606fa1f4 Fix default positions of toolbars.
Device toolbar had jumped to the top with a recent change of toolbar visibility.
2016-08-15 09:42:29 +01:00
Paul Licameli
fe5ab9a462 Remove the naked new in allocation of AudacityProject 2016-08-14 15:24:59 -04:00
James Crook
d0a32f27eb Hide Scrubbing Toolbar by default. 2016-08-14 15:59:07 +01:00
James Crook
8a8b43d956 Bug 1419 - Restore "scrub indicator shows before we click in scrub ruler".
Restored Paul's original intention, which I inadvertently changed in my fix for Bug 1419.  Moving into the scrub ruler shows the scrub indicator now even before we actually start scrubbing (or seeking).  The tooltip is now seen as belonging to the scrub indicator rather than to the ruler.  Additionally I show the indicator immediately on entry, rather than requiring a movement left or right first, which I think is better and I think the original version didn't.
2016-08-14 15:26:07 +01:00
Paul Licameli
d84e1cc45e Fix memory leaks, though in unused code...
... Is this kept around for future use?
2016-08-14 10:20:50 -04:00
Paul Licameli
41efaeeef0 Fix Windows build 2016-08-14 09:35:04 -04:00
Paul Licameli
32f24eabb2 Review uses of safenew...
... add comments and assertions, and use make_unique instead where possible
2016-08-13 23:16:05 -04:00
Paul Licameli
84a6456788 Iterate over all clips of a track, including cutlines, where needed 2016-08-13 20:17:55 -04:00
Paul Licameli
6909bdf398 Define and use IteratorRange 2016-08-13 16:31:31 -04:00