Improved seeking

This read-only archive contains discussions from the Adding Feature forum.
New feature request may be posted to the Adding Feature forum.
Technical support is available via the Help forum.
Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Improved seeking

Post by Robert J. H. » Wed Nov 05, 2014 4:21 pm

Gale, here are the steps:

- create a chirp tone
- hold down dot (.) or shift-dot until you shoot over the right boundary
- The play cursor/ selection moves to the end of the track or nearly so.
- try different selections and movement keys.

Audacity 2.0.7 alpha Rev 13536 (with the second patch applied), Host Wasapi.

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Improved seeking

Post by steve » Wed Nov 05, 2014 5:04 pm

Gale Andrews wrote:Robert, can you please write steps out 1,2,3 for the bug. I can't understand exactly what you mean.
I don't either.
Robert J. H. wrote:hold down dot (.) or shift-dot until you shoot over the right boundary
It doesn't shoot over the right boundary. It stops at the end :?
Robert J. H. wrote: The play cursor/ selection moves to the end of the track or nearly so.
On my machine, it stop at the end of the final sample period.
Robert J. H. wrote:try different selections and movement keys.
"Shift + dot" does the same.
"K" does the same.
"End" does the same.

What happens for you?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Improved seeking

Post by Robert J. H. » Wed Nov 05, 2014 11:04 pm

steve wrote:What happens for you?
The audio is playing until the end is reached.
All following keys are interpreted as their counterpart in stop mode.
This means that the cursor will be moved from now on, either from its original position or the right selection boundary.
In other words, the holding down of the key seems to be interrupted at the end and resumed which leads to that odd behaviour.
I suspect that it is somehow caused by the screen reader. That would explain why you do not have this problem.
The issue remains if I quit NVDA, but disappears after a restart of NVDA, i.e. the selection is not altered anymore.
I hope it stays like that.

Another oddity: When I hold point (. down in order to seek and press at the same time space (to stop playback), Audacity crashes (but who does such a thing...).

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Improved seeking

Post by Gale Andrews » Thu Nov 06, 2014 2:23 pm

Robert J. H. wrote:
steve wrote:What happens for you?
The audio is playing until the end is reached.
All following keys are interpreted as their counterpart in stop mode.
This means that the cursor will be moved from now on, either from its original position or the right selection boundary.
In other words, the holding down of the key seems to be interrupted at the end and resumed which leads to that odd behaviour.
I suspect that it is somehow caused by the screen reader. That would explain why you do not have this problem.
The issue remains if I quit NVDA, but disappears after a restart of NVDA, i.e. the selection is not altered anymore.
I hope it stays like that.
I can reproduce that issue without NVDA on, but only in the patched build.
  1. Generate Tone 5 minutes, place cursor at 10s, press and release SPACE, hold down period (dot).
  2. When the playback stops, the editing cursor moves from 10s to the end of the track then stops there.
  3. Select from e.g. 1 minute to the end, press and release SPACE, hold down period (dot).
  4. When the playback stops, the editing cursor moves from 10s to the end of the track then stops there, removing the selection.
Mouse up after CTRL-dragging to scrub removes the selection. I told Paul I don't like that, as you may have seen on -devel.
Robert J. H. wrote:When I hold point (. down in order to seek and press at the same time space (to stop playback), Audacity crashes (but who does such a thing...).
I can reproduce that in HEAD on Windows and Mac (but not on Linux) so I made a P4 bug for it: Bug 781 – Crash pressing SPACE while holding down short seek shortcut.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Paul L
Posts: 1788
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Re: Improved seeking

Post by Paul L » Thu Nov 06, 2014 5:24 pm

I'm on the case! I reproduced it in Windows, and it was like something I had seen before but not with the unmodified source tree. I uploaded a patch to Bugzilla. Thanks to Robert and Gale for a proof that this crash was not a result of any change of mine.

Paul L
Posts: 1788
Joined: Mon Mar 11, 2013 7:37 pm
Operating System: Please select

Re: Improved seeking

Post by Paul L » Thu Nov 06, 2014 7:34 pm

... and James has committed my fix.

Locked